0
constructor and a destructor for the ''Mother'' class.
Drag and drop from the options below to define a constructor and a destructor for the ''Mother'' class. ::Mother() { cout << "constructor" << endl; } Mother::() { cout << "destructor" << endl; }
4 Respuestas
+ 2
Mother::Mother() {
cout << "constructor" << endl;
}
Mother::~Mother() {
cout << "destructor" << endl;
}
0
This appears to be a question from the C++ course. Have you already tried revisiting the lessons prior to the given quiz? More often then not, you'll find a solution there. You can also use up some XP to solve the question for you.
If you have a specific question regarding the quiz, you should state that question, so we can help you understand it, and not have others just solve your problems for you, otherwise your learning experience will equal zero.
- 1
f :'/
- 2
ok i will do it my self...