krupa
Posts: 2
Nickname: krupaksk
Registered: Aug, 2002
|
|
Re: Question in Inheritance
|
Posted: Oct 3, 2002 9:44 AM
|
|
Hi Ana , Thanks for the reply. Actually i was also thinking similar. But nowhere i read about Inheritance mentions that subclass behaves wrapping the super class and also there are other few Grey areas with this concept which i explain below. ( If you got any article/book explaining the above concept, please send me the references.. )
1.Abstract classes: As we know we cannot create any instance of abstract classes. If we extend from a abstract class is the Instance of abstract class wrapped in the calling class, because no way we can create an instance of abstract class right.
2.Super key word: If the instance is wrapped inside the base class why it is not visible to the sub class. Whenever we want to access the super class methods we are using the super keyword. Why cant we use the wrapped object instead.... infact where is it located?
3. Object class: We all know Object is super class of all the classes. How many number of object class instances available in the environment for a big project?? staggering!!!
Regards, krupa.
|
|