What is the work of a constructor?

 Posted by Abhisek on 1/21/2010 | Category: OOPS Interview questions | Views: 4413

Constructor creates and initialises the objects in an application.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Setahamid on: 1/21/2010
constructor is used to initialize class members .it has same name as class.it automatically call when object of class is created.it can not have return type.

Login to post response