Question

Which of the following best defines the concept of Encapsulation in Object-Oriented Programming (OO

  • P ?
A Allowing objects to communicate with each other through function calls
B Hiding the internal state of an object and restricting access to it
C The ability of an object to take on multiple forms
D Organizing classes in a hierarchical manner
E Storing related objects together in a single class
Practice Next

Hey! Ask a query