Computer Science, asked by bittu92, 1 year ago

what is constructor in c++

Answers

Answered by hello50
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.
Answered by Anonymous
0

A member function having the same name as its class and that initializes class objects with legal initial values.

Similar questions