Computer Science, asked by Faisal0786, 1 year ago

What do you understand by constructor?

Answers

Answered by khushi1513
0
Constructor is a builder.
Answered by kitty07
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