Tuesday, January 23, 2007

What are Constructors?

A constructor is always invoked when a new object is created. Every class has atleast one constructor. Constructor must have the same name as the class name. Constructors don't have a return type. The default constructor is a no-arg constructor.


SOURCE : www.referjava.com

No comments: