hello again, today i'm a breeze for topics
I often see c++, class declarations like this:
MyClass : DoSomething :: MyParentClass {...}
then to use functions from the myParentClass we just have to do
MyParentClass->MyParentClassFunction
do we have in delphi the same structure or, even if our class inherits from another like:
Type
TMyClass = Class(TMyParentClass)
.....
public private protected end;
we still have to create the a new obj on constructor:
constructor MyClass.Create();
begin
inherited Create();
myGlobalParentClass := TMyParentClass.Create();
end;
and use it from there!
thank you very much!
Best Regards
I often see c++, class declarations like this:
MyClass : DoSomething :: MyParentClass {...}
then to use functions from the myParentClass we just have to do
MyParentClass->MyParentClassFunction
do we have in delphi the same structure or, even if our class inherits from another like:
Type
TMyClass = Class(TMyParentClass)
.....
public private protected end;
we still have to create the a new obj on constructor:
constructor MyClass.Create();
begin
inherited Create();
myGlobalParentClass := TMyParentClass.Create();
end;
and use it from there!
thank you very much!
Best Regards