-
June 14th, 2002, 06:58 AM
#1
nesting of classes and inheritance
What is the use of nested classes?
My doubt is whatever a nested class provides is provided by inheritance. But whatever inheritance provides is not provided by nested classes(such as run time polymorphism and virtual functions). Also imparting properties of a class to another classes through inheritance is easier than using nested classes.
Why then we need nested 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
|