|
-
Oct 5th, 2003, 12:15 PM
#1
Thread Starter
Junior Member
Properties in Abstract Classes
I have 3 classes, 1 of them abstract, and the other two regular classes that inherit from the abstract class. How can I define properties in abstract classes and get them to work in the main program. If they are defined just like they are in the normal class, how can I change the properties of the abstract class in the main bit of code?
Thanks,
-
Oct 5th, 2003, 03:42 PM
#2
I'm not sure what you are asking but you can Override properties in subclasses to change them, but make sure they are declared in your base class as Overridable.
-
Oct 7th, 2003, 06:54 AM
#3
Fanatic Member
You could also declare your method / property as abstract (Must Override) and then implement them in your sub-classes.
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
|