πŸ“Š Ruby
Q. What is the purpose of inheritance in OOP?
  • (A) To hide the implementation details
  • (B) To allow a class to inherit properties and behaviors from another class
  • (C) To restrict access to certain methods
  • (D) To hide the implementation details
πŸ’¬ Discuss
βœ… Correct Answer: (B) To allow a class to inherit properties and behaviors from another class

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
122
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate