Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Beginning Java
Constructor
Vidya Kakumani
Greenhorn
Posts: 2
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Whats the use of a 'Constructor' in a class?
David O'Meara
Rancher
Posts: 13459
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"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
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
abstract class
A constructor cannot be final, static or abstract. Why ?
Constructor in abstract class
public constructor in an abstract class.
Constructor
More...