Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Constructor

 
Vidya Kakumani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whats the use of a 'Constructor' in a class?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Vidya",
Please check your private messages for a message from Campbell.
-DOM
[ August 26, 2008: Message edited by: David O'Meara ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Constructors provide a single step for creating an instance of a Class, and can be used to enforce minimum parameters or validate the initial state of the instance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic