Search found 61 matches: inheritance

Return to advanced search

Re: hash for storing variables

... with object-oriented programming (OOP), especially regarding modularity and encapsulation. However, it lacks classical OOP elements like inheritance and polymorphism. The use of multiple levels of patchers and preprocessors for composing components resembles the OOP principle of composition. ...
by Otto
Tue Nov 28, 2023 8:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash for storing variables
Replies: 7
Views: 522

Re: HOW REPORT PREVIEW CAN BE CUSTOMIZED ?

... while using the updated commands. This was especially true for the button bar, and how email has been handled. What I like about inheritance is that I can write my modifications and never touch the FW libraries when they are updated. For me it has worked very well, and it is very ...
by TimStone
Mon May 15, 2023 10:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HOW REPORT PREVIEW CAN BE CUSTOMIZED ?
Replies: 8
Views: 410

Re: HOW REPORT PREVIEW CAN BE CUSTOMIZED ?

Hello Tim, I just want to briefly comment on inheritance. I use it. I think concepts always need to be reevaluated over and over again. The powerful editors with comparison functions (e.g., VS) make it very easy to compare different states of software. ...
by Otto
Mon May 15, 2023 6:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HOW REPORT PREVIEW CAN BE CUSTOMIZED ?
Replies: 8
Views: 410

New FTDN January/Enero 2021 (FWH 21.01)

... is a hash. - For tree browses, if the programmer does not specify any bitmaps, xbrowse provides default bitmaps. * TREES: (LinkList class) - Inheritance from TTreeItem class. It is now possible to derive class from TTreeItem and create trees with the same command syntax using the new derived ...
by Antonio Linares
Sun Feb 07, 2021 9:10 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2021 (FWH 21.01)
Replies: 1
Views: 1254

Re: matrices multiplication

... both procedural programming (which makes use of functions) and object-oriented programming (including features such as single and multiple inheritance, but Harbor also supports these two things. and then I don't understand what is needed to convert programs made on python to harbour that ...
by Silvio.Falconi
Tue Oct 13, 2020 6:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1030

sharing forms with mod_harbour !!!

Design your forms and share them. Other users modify them (visual inheritance) and share them again... This way forms turns into social self-contained entitites, with full functionality that can be shared and reused: https://harbour.fourtech.es/modharbour_samples/designer.prg?20190825071550 ...
by Antonio Linares
Sun Aug 25, 2019 8:49 am
 
Forum: mod_harbour
Topic: sharing forms with mod_harbour !!!
Replies: 1
Views: 423

Re: To Nages : Explain me how I must make this tdatabase

... that TDbcombo inherits from TCombobox which inherits from TControl which inherits from TWindow. Most of the FW language is written using objects. Inheritance is a good thing, not something to be avoided. Inheritance is one of the key concepts of Object Oriented Programming. This allows you to ...
by Silvio.Falconi
Wed Mar 06, 2019 9:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages : Explain me how I must make this tdatabase
Replies: 18
Views: 3313

Re: To Nages : Explain me how I must make this tdatabase

... that TDbcombo inherits from TCombobox which inherits from TControl which inherits from TWindow. Most of the FW language is written using objects. Inheritance is a good thing, not something to be avoided. Inheritance is one of the key concepts of Object Oriented Programming. This allows you to ...
by James Bott
Tue Mar 05, 2019 6:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages : Explain me how I must make this tdatabase
Replies: 18
Views: 3313

Re: Override

No, sorry. But I would never use EXTEND so extensively. EXTEND is absolutely not a replacement for inheritance.

EMG
by Enrico Maria Giordano
Thu Oct 19, 2017 8:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Override
Replies: 9
Views: 1135

Re: Override

Enrico, have you checked the difference in size of the EXE using "inheritance" and using "Extend" of a class?
by cnavarro
Thu Oct 19, 2017 6:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Override
Replies: 9
Views: 1135

Re: Override

From the perspective of OOP, you should use inheritance without any doubts. But pragmatically, sometimes it is easier to extend an existing class because you don't have to change all the places where you are using it.

EMG
by Enrico Maria Giordano
Thu Oct 19, 2017 5:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Override
Replies: 9
Views: 1135

Re: Override

Otto wrote:is there much difference between inheriting and extending the inherited class to extend a class.


Yes. With EXTEND you are not creating a new class but you are extending an existing class. So inheritance is not involved here.

EMG
by Enrico Maria Giordano
Thu Oct 19, 2017 5:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Override
Replies: 9
Views: 1135

Example Business Object (Customer)

... advance one can make in programming. As I have said before, the main concepts used in OOP are granularity, polymorphism, encapsulation, and inheritance. I am using all of these here. Inheritance: This class is inheriting from my TRecord class which inherits from my TData class. Granularity: ...
by James Bott
Wed Jun 28, 2017 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Example Business Object (Customer)
Replies: 32
Views: 8526

Re: Tdata still Up to Date ?

... CLASS TCustomers from TDatabase Meaning that I create a new class Tcustomer and ALL actions inside Tdatabase will become available. Yes, that is inheritance. Likewise when start to design objects, look for common code and move it up the hierarchy. Then you create your own methods. METHOD printCustList() ...
by James Bott
Thu Jun 01, 2017 3:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 5118

Re: Tdata still Up to Date ?

... hasn't been updated since 2006, because I haven't found any need for an update. It is still working fine. This is one of the advantages of OOP and inheritance. Note that TData uses TDatabase as its parent class, so new features that are added to TDatabase are automatically inherited by TData. TData ...
by James Bott
Thu May 04, 2017 10:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 5118
Next

Return to advanced search