Question

Which OOP principle allows for restricting access to certain parts of an object while exposing only necessary parts for interaction?

A Polymorphism
B Encapsulation
C Inheritance
D Abstraction
E Message Passing
Practice Next

Hey! Ask a query