Menu
×
×
Correct!
Exercise:Create a constructor of
class MyClass {
public:
@(9) {
cout << "Hello World!";
}
};
int main() {
@(7) myObj;
return 0;
}
class MyClass {
public:
MyClass() {
cout << "Hello World!";
}
};
int main() {
MyClass myObj;
return 0;
}
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 58 exercises.
Are you sure you want to continue?