Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Constructor
Vidya Kakumani
Greenhorn
Joined: Jul 10, 2008
Posts: 2
posted
Aug 26, 2008 19:00:00
0
Whats the use of a 'Constructor' in a class?
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
I like...
posted
Aug 26, 2008 19:34:00
0
"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
I like...
posted
Aug 26, 2008 19:35:00
0
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://zeroturnaround.com/jrebel
subject: Constructor
Similar Threads
main method
IS CONCTRUCTOR IS A METHOD
WA #1.....word association
Constructor doubt - K&B Book
Can I overload a constructor with enum values?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter