LearnFrenzy
Sign in Take a free test

Inheritance · Inheritance MCQ · Question 20

What is not inherited by a derived class? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 20 Back to Exercise

Which of the following is not inherited automatically by a derived class?

  • A Public member functions
  • B Protected data members
  • C Constructors and friendship Correct
  • D Static members
Correct Answer: Option C

Constructors are inherited only with using Base::Base; friendship is never inherited.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links