Why constructor is called special type of member function in c++?
Answers
Answered by
3
Special member functions in C++ are functions which the compiler will automatically generate if they are used, but not declared explicitly by the programmer. ... Default constructor if no other constructor is explicitly declared. Copy constructor if no move constructor and move assignment operator are explicitly declared.
Similar questions
Accountancy,
7 months ago
Sociology,
7 months ago
History,
7 months ago
Computer Science,
1 year ago