wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Reg Constructors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Reg Constructors" Watch "Reg Constructors" New topic
Author

Reg Constructors

Nousheed Mohammed
Greenhorn

Joined: Mar 30, 2007
Posts: 6
Will constructors be inherited in the sub class?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3064
    
  33

Nousheed Mohammed wrote:Will constructors be inherited in the sub class?


No the constructors are not inherited but you can reference the Super class constructors using the keyword- super(<arg list>). You can look up K&B to read about Inheritance and Overriding concepts.


Mohamed Sanaulla | My Blog
 
Don't get me started about those stupid light bulbs.
 
subject: Reg Constructors
 
Similar Threads
Can constructor throw exception?
Why I can't call the parent class constructor?
another question on constructors
Constructors are not inhertied - True
OOP 4: Lookup