Classes and Objects

Q1:
Which of the following statements are correct?
  1. Data members ofa class are by default public.
  2. Data members of a class are by default private.
  3. Member functions of a class are by default public.
  4. A private function of a class can access a public function within the same class.
  5. Member function of a class are by default private.

A 1, 3, 5

B 1, 4

C 2, 4, 5

D 1, 2, 3

E None of these

ANS:C - 2, 4, 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.