1. Home
  2. Subjects
  3. Computer Science MCQs
  4. C++ and Object-Oriented Programming

C++ and Object-Oriented Programming MCQs · Page 5

115 multiple choice questions with answers in Computer Science MCQs.

Showing 101–115 of 115

A friend function of a class can:

  1. only access its public data members
  2. replace the class constructor entirely
  3. access its private and protected members Correct answer
  4. inherit publicly from its base class
MCQSEXAM Read explanation