Home > DeveloperSection > Interviews > What is a constructor?

Posted on    September-22-2014 7:48 AM

 Java C#  Java 
Ratings:
 1 Answer(s)
  637  View(s)
Rate this:

Kamlakar Singh
Kamlakar Singh

Total Post:80

Points:400
Posted on    September-22-2014 7:48 AM

A constructor is the method of a class that is called when an object of that class is created. The constructor initializes class parameters and has the same name as the class.
constructor returns the reference id of class.

Don't want to miss updates? Please click the below button!

Follow MindStick