it’s a dumb question i think..But.. When a declare a child class of a other class in Delphi, is the childs gets directly the parents methods?
explanations:
A class named ‘P’ is parent of a class named ‘C’, the ‘P’ class has a method called ‘Mth’.
Is it possible to call ‘C.Mth’ or do i notice something in the declaration of ‘C’ (with the constructor maybe?)..
The question is the same with variables..
I hope to be clear enough.. thanks a lot for responses…
A child class inherits all the protected, public and published properties, functions and procedures of its parent classes.
It can call them directly, without any special syntax, providing the child class has not overridden them.
For example: