What is a constructor in C++?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

A constructor is the member function of the class which is having the same as the class name and gets executed automatically as soon as the object for the respective class is created.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.