Question: Which statement is true?

  1. Only classes can have member variables and methods.
  2. C++ supports multiple inheritance.
  3. C++ supports only single inheritance.
  4. Only structs can inherit.

Answer: The correct answer of the above question is Option B:C++ supports multiple inheritance.