| Author |
Constructor in Abstract Classes
|
Navin Mishra
Greenhorn
Joined: Aug 11, 2008
Posts: 1
|
|
Hi Everyone, My first post at Javaranch. Wanted to know what purpose does constructors serve in Abstract Classes if those classes should never be instantiated. Regards Navin
|
 |
Deepak Bajoria
Ranch Hand
Joined: Mar 07, 2008
Posts: 35
|
|
|
Constructors in abstract classes get executed when their subclasses are instantiated. As you know there is has to be a call to super() in subclass' constructors.
|
SCJP 5 - 93%
|
 |
 |
|
|
subject: Constructor in Abstract Classes
|
|
|