• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reg Constructors  RSS feed

 
Nousheed Mohammed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will constructors be inherited in the sub class?
 
Mohamed Sanaulla
Bartender
Posts: 3179
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!