• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

constructors

 
ssiva raman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the importance of constructor other than instantiating an object and initializing its data members.?
if any please give it.dont miss a single.
 
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
A constructor has just 1 purpose: constructing objects. That's why it's called a constructor.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic