SOFTWARE ENGINEERING

SOFTWARE DESIGN

OBJECT ORIENTED DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The idea of placing data and the processes (methods) that operate on the data into the same object is referred to as ____
A
Information Hiding
B
Polymorphism
C
Object Binding
D
Encapsulation
Explanation: 

Detailed explanation-1: -In object-oriented computer programming (OOP) languages, the notion of encapsulation (or OOP Encapsulation) refers to the bundling of data, along with the methods that operate on that data, into a single unit.

Detailed explanation-2: -In software systems, encapsulation refers to the bundling of data with the mechanisms or methods that operate on the data.

Detailed explanation-3: -Encapsulation is the mechanism of hiding of data implementation by restricting access to public methods. Instance variables are kept private and accessor methods are made public to achieve this. For example, we are hiding the name and dob attributes of person class in the below code snippet.

Detailed explanation-4: -Encapsulation can be defined as a process where a continuous thin coating is formed around solid particles, liquid droplets, or gas cells that are fully contained within the capsule wall (King, 1995).

There is 1 question to complete.