|
-
September 28th, 2003, 05:33 AM
#2
what do you mean??
An abstract class is any class that contains one or more virtual functions. An abstract class cannot be used to create objects, but it is still useful because you can create a family of dirived classes from your abstract base class. Lets say that you have a program and you create a class and in that class, you have a function that says talk. When an object named dog is passed, you dont want the talk function to say meow, instead you want it to say bark. However, when a cat object is passed, you want the talk function to say meow. This is when you would want to use a base class (abstract class) and derive some classes from your base class that all do different things but have the same names. i hope i made sense...and by the way, you made it sound like you were testing our knowledge...dont try to do that
Support your right to arm bears.

^^This was the first video game which i played on an old win3.1 box
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
|
|