What is the default inheritance access mode for a class in C++?

Options

  • A. public
  • B. protected
  • C. private
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. private

Detailed Explanation

Correct Answer: Option C

Explanation:
When no access mode is specified, a C++ class inherits privately by default. For a struct, the default inheritance access mode is public.