Q. Which of the following statements is correct when a class is inherited publicly?

  • (A) Public members of the base class become protected members of derived class.
  • (B) Public members of the base class become private members of derived class.
  • (C) Private members of the base class become protected members of derived class.
  • (D) Public members of the base class become public members of derived class.
πŸ’¬ Discuss
βœ… Correct Answer: (D) Public members of the base class become public members of derived class.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
237
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate