Vidyalelo
Ruby Programming · Q9

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 9

Q9

What is encapsulation in Ruby classes?

A.
The bundling of data with the methods that operate on that data
Answer
B.
The hiding of data within a class
C.
The inheritance of properties and behaviors
D.
The conversion of data types

Answer: Option A

Solution

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