• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

superclass constructors

 
ssiva raman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

we know that when we instantiate the subclass using its constructors,it implicitly or explicitly call the superclass constructor.
what's the point behind this.
i'd appreciate if you go more deep and technical.

thankyou
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How else would the extended class get properly initialized?
 
ssiva raman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you mean?
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would you otherwise initialize required fields from the superclass?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic