debasmita
The main point is the reset of the private instance variable after the call to base class' constructor and before the end of the derived class' constructor.
The actual answer and main focus should be on line 4 and 5 of the original question posted by madhu was invoking the implementation of abstract method present in the derived class whose object is being used to invoke the constructor! Is that right?
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Actually the private instance variable *IS NOT* getting reset at all! The output itself shows that.
The main point is the reset of the private instance variable after the call to base class' constructor and before the end of the derived class' constructor.
means static variables being initialized first then control goes to super class constructor.
am I right?
The main point is the reset of the initialized private instance variable after the call to base class's constructor and before the end of the derived class's constructor.
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |