posted 20 years ago
1. In main() Dolphin constructor is invoked.
2. Before "Dolphin" is printed, JVM implicitly inserts super(), which calls Mammal constructor.
3. In Mammal constructor, before "Mammal" is printed super() calls Object constructor.(you are on top of the stack).
4. Object instance variables are instantiated, if any?
5. Mammal instance variables are instantiated, �Mammal� printed.
6. Dolphin instance variables are instantiated, �Dolphin� printed.
cheers
[ July 07, 2003: Message edited by: Alex Radomski ]
[ July 07, 2003: Message edited by: Alex Radomski ]