Dippen
asked on
Wanting to create a TList subclass...
Hi! I'm rather new to classes and OOP, and I would like to create a class (TScriptObjectList) that is identical to TList BESIDES the fact that I want the Items property to return a pointer to the TScriptObject class instead (a class that I've created).
Can I accomplish that without having to duplicate the entire TList class? Overriding perhaps?
Like:
var
MyScriptObject : TScriptObject;
MyScriptObject := MyScript.Children.Items[0] ;
(no typecasting needed!)
Thanks!
Daniel, Sweden
Can I accomplish that without having to duplicate the entire TList class? Overriding perhaps?
Like:
var
MyScriptObject : TScriptObject;
MyScriptObject := MyScript.Children.Items[0]
(no typecasting needed!)
Thanks!
Daniel, Sweden
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cheers,
Woof!