what is constructor in c++
Answers
Answered by
1
constructor is a member function of the class that initializes the object of class.
Constructor can be no argument constructor ,or one argument ,and so on.
Constructor can be no argument constructor ,or one argument ,and so on.
Answered by
0
A member function having the same name as its class and that initializes class objects with legal initial values.
Similar questions