Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg Constructors

 
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
Saloon Keeper
Posts: 3159
33
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic