True/False
Given this declaration:
class myClass
{
public:
void print(); //Output the value of x;
MyClass();
private:
int x;
};
myClass myObject;
The following statement is legal.
myObject.x = 10;
Correct Answer:
Verified
Related Questions
Q4: Q6: If a member of a class is Q7: The public members of a class must Q9: If an object is declared in the Q10: Which of the following class definitions is Q12: If the heading of a member function Unlock this Answer For Free Now! View this answer and more for free by performing one of the following actions Scan the QR code to install the App and get 2 free unlocks Unlock quizzes for free by uploading documents