This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Constructor" Watch "Constructor" New topic
Author

Constructor

Vidya Kakumani
Greenhorn

Joined: Jul 10, 2008
Posts: 2
Whats the use of a 'Constructor' in a class?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"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

Joined: Mar 06, 2001
Posts: 13459

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constructor
 
Similar Threads
IS CONCTRUCTOR IS A METHOD
WA #1.....word association
Can I overload a constructor with enum values?
main method
Constructor doubt - K&B Book