Classes and Objects

Q1:
Which of the following statements are correct?
  1. Instance members of a class can be accessed only through an object of that class.
  2. A class can contain only instance data and instance member function.
  3. All objects created from a class will occupy equal number of bytes in memory.
  4. A class can contain Friend functions.
  5. A class is a blueprint or a template according to which objects are created.

A 1, 3, 5

B 3, 5

C 2, 4, 5

D None of these

E 2, 4

ANS:A - 1, 3, 5

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.