netoops blog

Saturday 24 August 2013

Data Abstraction and Data Encapsulation



Answer:
          1) The act of representing essential features without including the background details or   explanations is known as "data abstraction"
A mechanism that prevents the data of a particular objects safe from intentional or accidental misuse by external functions is called "data Encapsulation"
2)Abstraction as the process of extracting essential characteristics of an entity. For example, for the task to find the area of geometric figures, a Circle (entity) would be complete abstracted out by its characteristic of Radius, Square by its side. This is data abstraction.

Encapsulation bundles this with the operations you can perform on the entity. In OOP world the class, object model nicely encapsulates the entire entity.
3)Abstraction: tecnically abstraction is like use of methods in a class by creating a object of that class, and u no need to know how the these methods are defined and worked.

Encapsulation: And in encapsulation keep code and data it manipulates safe from the outside code,i.e it work like a wrapper for the inside code.
4)abstraction :- reducing the complexity of the real world and showing it in understandable manner
Encapsualation is basically, wrapping up of data memebers and methods
5)Abstraction is the process of hiding or removing the insufficient data and force to implement sufficient implementation for a class or method.....
Encapsulation is the process of hiding internal implementation of the class and restricting to access directly that data and can be able to access through publicly exposed methods(getters & setters..)

Tech Knowledege
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments :

Post a Comment

 
Subscribe For Free Updates!

We'll not spam mate! We promise.

Become Our Fan on Social Sites!