Sunday, May 17, 2015

SJA->Top MNC Companies frequently asked questions, what is Encapsulation ,what is Abstraction with real time example .



SJA->
Top MNC Companies frequently asked questions, what is Encapsulation ,what is Abstraction with real time example .

Encapsulation definition :
The Encapsulation is a concept of binding the data and code in single unit called object, and hiding all the implementation details of a class from the end user. It prevents unauthorized access of data and restricted to the user to use the only necessary data , it is also called as Data Binding .
in simple words..
Encapsulation is the Wrapping up data member and method together into a single unit ( Class) is called .

Advantage: The main Advantage of Encapsulation is the ability to modify our implemented programming code without breaking the code of others who use our code. With this facility Encapsulation gives flexibility, maintainability and extensibility to our code.
encapsulation is one of the most advantage feature in oops concept .

Real Time Examples :
when you ask the real time example ,we are giving the following scenarios.

ATM is a good example of abstraction, we doesn't know what are all the internal processes that are going when we access it..instead we know only the inquiries, deposit, withdrawal and etc.
Ink is another example ,Ink is the important component in pen ,but it is hiding by some other material.

Abstraction Definition :
Abstraction is to represent the essential features without representing the back ground details is known as Abstraction ,
Abstraction is the process of hiding the working style of an object, and shows the information of an object in understandable way.
                                                (or)
 Abstraction refers to the ability to make a class abstract in OOP. All other functionality of the class still exists, and its fields, methods, and constructors are all accessed in the same manner. You just cannot create an instance of the abstract class.

Advantages :
The main Advantage of Abstraction is the interface creates a contract between the client and the implementer's  he client knows the interface but should not have to know how the implementer provided that interface.
Real Time Examples :
when you ask the real time example ,we are giving the following scenario,

that  is wiring of the electricity under the wall(houses, buildings) which is hide and we use only its related features are like fan, cooler, bulb and  etc.

Give me your valuable comments or suggestions to improve our blog content . 

Tags: Encapsulation definition , Abstraction  definition ,top most mnc companies asked interview questions, wipro frequently asked questions , encapsulation  definition , encapsulation example ,what is encapsulation  with real time example ,accenure ,google ,TCS  asked about what is encapsulation , encapsulation advantages . Abstraction real time example , Abstraction advantages, what is Abstraction?, give me example about Abstraction.

 







0 comments:

Post a Comment

 
View My Stats