Vidyalelo
Ruby Programming · Q30

Inheritance and Polymorphism in Ruby

Programming · Ruby Programming · question 30

Q30

What is the main purpose of using abstraction in Object-Oriented Programming?

A.
To expose all the implementation details
B.
To restrict access to public methods
C.
To define class methods
D.
To hide the complex implementation details and only expose the necessary features
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board