SOFTWARE DESIGN
OBJECT ORIENTED DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Information Hiding
|
|
Polymorphism
|
|
Object Binding
|
|
Encapsulation
|
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).