C++ MQCs with Explanation (CHAPTER : POINTERS, VIRTUAL FUNCTIONS AND POLYMORPHISM )

If x is a private data member of a class, then it is legal to assign a value to x inside a member function using

  1. x = 100;
  2. this ->x = 100;
  3. (*this).x = 100;
  4. all the above



Answer: 
Option d: all the above

Explanation Here

Post a Comment

0 Comments