SOFTWARE ENGINEERING

SOFTWARE DESIGN

OBJECT ORIENTED DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
To hide the internal implementation of an object we use ____
A
inheritance
B
encapsulation
C
polymorphism
D
none ofthese
Explanation: 

Detailed explanation-1: -Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties’ direct access to them.

Detailed explanation-2: -Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data encapsulation. A blueprint for a software object is called a class. Common behavior can be defined in a superclass and inherited into a subclass using the extends keyword.

Detailed explanation-3: -Data hiding is a technique of hiding internal object details, i.e., data members. It is an object-oriented programming technique. Data hiding ensures, or we can say guarantees to restrict the data access to class members.

Detailed explanation-4: -Data encapsulation, also known as data hiding, is the mechanism whereby the implementation details of a class are kept hidden from the user.

There is 1 question to complete.