What do you understand by constructor?
Answers
Answered by
0
Constructor is a builder.
Answered by
0
A constructor is a special method of a class or structure in object-oriented programming that initializes an object of that type. A constructor is an instance method that usually has the same name as the class, and can be used to set the values of the members of an object, either to default or to user-defined values.
Similar questions