1. Home
  2. Computer Science MCQs
  3. C++ and Object-Oriented Programming
  4. What relationship does public inheritance normally express?

Added 30 Nov -0001

What relationship does public inheritance normally express?

  1. A has-a relationship between the classes
  2. A uses-a relationship between the classes
  3. A part-of relationship between the classes
  4. An is-a relationship between the classes Correct answer

Correct answer

D. An is-a relationship between the classes

15 views

MCQSEXAM

Explanation

Public inheritance models is-a, so a derived object can stand in wherever a base object is expected.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C++ and Object-Oriented Programming MCQs

Practise all C++ and Object-Oriented Programming MCQs

Similar MCQs