Forum: Object-Pascal / Delphi-Language
Delphi
by mkinzler,
6. Jan 2011
Because of the IS-A paradigm each Subclass "is a" Baseclass
if the wanted function/procedure is declared in a superclass ( baseclass->MiddleClass->Class1) it can be called as function/procedure of the superclass. It'S always called the "best matched" function.
if the function is implemented in the Baaseclass this function is called, if the implementation is in Class1/Class2 then the...
Forum: Object-Pascal / Delphi-Language
Delphi
by mkinzler,
6. Jan 2011
Yes, if BaseClass is a superclass of class
Forum: Object-Pascal / Delphi-Language
Delphi
by mkinzler,
6. Jan 2011
Why not
if class is TBaseclass then BaseClass( class).loadfromstream());?