Computer Science, asked by Shreyaarora262, 1 year ago

Any two characteristics of constructor functions?

Answers

Answered by Ley1
1
Same name as that of class

Ley1: Used to initial the data members of the objects with a legal initial value
Anonymous: Yeah... Good one..
Answered by bhattsimran5p3dub7
1
1 it has the same name as the class
2 it is used to initialize the values of the objects of the class
Similar questions