Saturday, November 7, 2009

CONSTRUCORS

Constructor is a type of method but it has some property.
The class name and the method name are the same.
It will not have return type but it can have parameters.
This is automatically called when a new instance of class is created, that is why it is called as constructor.

No comments:

Post a Comment