Menu
×
×
Correct!
Exercise:Create a function named
class MyClass {
public:
@(4) @(8)() {
cout << "Hello World!";
}
};
int main() {
MyClass myObj;
@(5).@(8)();
return 0;
}
class MyClass {
public:
void myMethod() {
cout << "Hello World!";
}
};
int main() {
MyClass myObj;
myObj.myMethod();
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?