WHAT IS A CONSTRUCTOR?

Kamlakar Singh

Total Post:80

Points:400
Posted by  Kamlakar Singh
C#  Java 
 777  View(s)
Ratings:
Rate this:
  1. Kamlakar Singh

    Post:80

    Points:400
    What is a constructor?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!