Examveda
Examveda

What is the purpose of abstraction in OOP?

A. To hide the complex implementation details and only show the necessary features

B. To expose all the implementation details

C. To restrict access to public methods

D. To define class methods

Answer: Option A


Join The Discussion

Related Questions on Inheritance and Polymorphism in Ruby

What is polymorphism in OOP?

A. The ability to hide implementation details

B. The ability to restrict access to certain methods

C. The ability for objects of different classes to be treated as objects of a common superclass

D. The ability to create multiple instances