Examveda
Examveda

What is encapsulation in Ruby classes?

A. The bundling of data with the methods that operate on that data

B. The hiding of data within a class

C. The inheritance of properties and behaviors

D. The conversion of data types

Answer: Option A


Join The Discussion

Related Questions on Object Oriented Programming (OOP) Concepts in Ruby