Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
Bartender
Posts: 3166
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.
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!