Results 1 to 3 of 3

Thread: Properties in Abstract Classes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2003
    Posts
    26

    Question 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,

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    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
  •  



Click Here to Expand Forum to Full Width