* New post Constructor Destructor and Inheritance& Array , Virtual base class in c++ language

Tuesday, 26 February 2013

0 ABSTRACTION,ENCAPTULATION,POLYMORPHISM


1.Abstraction=> The ability to create an abstract representation of a concept in code  . Objects name employee is an abstraction of a real employee.Abstraction refer to the act of representing essential features without including the background detail or explanation.Classes use the concept of abstraction and are defined as a list of abstract attributes.In other ways"Abstraction" define way to abstract or hide your data member from outside world.

2.ENCAPTULATION => WHEN YOU encapsulate an object , you make its code and data internal and no longer accessible to the outside .Except through a well defined interface .This is called interface, this is called data hiding.In other ways "It hide all the internal detail of an objects from the outside world.It hides its data and methodfrom outside the worldand only expose code.Itmake the field in a class private and providing access to the field using public methods encaptulation alloow us to create a black -box  and protect an objects.It is all about the separation between implementation and interface.
3.POLYMORPHISM=> This is all about creating procedures that can operate on objects of different types.polymorphism is the concept that different objects have different implementation of the same characteristics.



0 comments:

Post a Comment

 

PROGRAMMINGqueen Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates

Blogger Widgets