krishna prasad gunasekaran
Ranch Hand
Posts: 158
posted 16 years ago
so a call to super() doesn't necessarily create a superclass object. Right?
does the superclass constructor run? absolutely, it will.
tell me whether i'm right.
a call to constructor doesn't create an object. it's only a syntactic way of telling the jvm that we need an object and also gives us a way to initialize instance variable. we can perform both operations simultaneously. that's the use of constructors. that is we are initializing the instance variables immediately after object creation.
am i right?
have a great day,
krishna prasad