|
-
Jun 17th, 2004, 09:24 PM
#1
Thread Starter
Lively Member
Cast superclass to subclass?
Is there a method to convert a superclass to one of its subclasses?
More specifically: I have a function that returns an Object class There's no way around this -- it has to return an Object. It's actually a generic "List" class used to store any type of data in a list. I don't want to wander too far off course here. Bottom line: It was to be an Object.
I do, however, know that it will only return a CDataSet class, because I'm only using it to store CDataSet objects. How can I 'convert' the returned Object class to a CDataSet object?
(Note: CDataSet is a custom class).
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|