It's not a secret anymore!
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 Head First Android this week in the Android 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: 3151
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Reg Constructors
 
It's not a secret anymore!