|
-
Jan 6th, 2005, 07:16 AM
#2
Hyperactive Member
Re: Invalid Cast Exception when Working with Inherited Classes
Hi
Why don't your manipulating function use the base class, why aren't you using your inherited class for all operations, you have the visibility set correctly so, Car.Colour should be fine in a Car Variable?
I maybe being dumb, but sometimes when someone puts up a wrong response other will help
Maybe you could post your other functions so that we can see what you actually trying to do. Tis a little confusing!
Cheers
Danny
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
|