ICT
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Encapsulation
|
|
Abstraction
|
|
Deduction
|
|
E-learning
|
Detailed explanation-1: -Encapsulation is a way to restrict the direct access to some components of an object, so users cannot access state values for all of the variables of a particular object. Encapsulation can be used to hide both data members and data functions or methods associated with an instantiated class or object.
Detailed explanation-2: -There are three types of encapsulation, namely Member variable encapsulation, Function encapsulation and Class encapsulation, each of which has its own significance with respect to member variables of a class, functions, APIs when it comes to the implementation of any specific application possessing encapsulation.
Detailed explanation-3: -The most important principle of object orientation is encapsulation: the idea that data inside the object should only be accessed through a public interface – that is, the object’s methods.
Detailed explanation-4: -In general, encapsulation is a process of wrapping similar code in one place. In C++, we can bundle data members and functions that operate together inside a single class. For example, class Rectangle public: int length; int breadth; int getArea() return length * breadth; ;