Download MetaTrader 5

is there a way to hide public member in a descendant class ? (eom)

To add comments, please log in or register
Find out the latest MQL5.community news!
Iggy
478
Iggy 2010.07.14 20:39 

is there a way to hide public member in a descendant class ?

Alexey Da
Moderator
6604
Alexey Da 2010.07.16 10:33  
Could you explain what exactly would you want to do (may be you have any examples) and what for?
Rashid Umarov
Admin
11821
Rashid Umarov 2010.07.19 16:37  

See Inheritance:

In protected inheritance, public and protected members of base class become protected members of derived class. In private inheritance, the public and protected members of base class become private members of the derived class.

In protected and private inheritance, the relation that "the object of a derivative class is object of a base class" is not true. The protected and private inheritance types are rare, and each of them needs to be used carefully.


To add comments, please log in or register