Menu
×
×
Correct!
Exercise:Create an object of
class MyClass {
public:
int myNum;
};
int main() {
@(7) @(5);
@(5).@(5) @(1) @(2);
cout << myObj.myNum;
return 0;
}
class MyClass {
public:
int myNum;
};
int main() {
MyClass myObj;
myObj.myNum = 15;
cout << myObj.myNum;
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?