What is difference between abstration and encapulation?
What is difference between abstration and encapulation with real type example
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nhlanhla A W MkhizePosted Feb 28, 2014, 5:27 PM
Abhay ShankerPosted Feb 28, 2014, 12:20 AM
Abstraction focuses on the outside view of an object (i.e. the interface) Encapsulation (information hiding) prevents clients from seeing it's inside view, where the behavior of the abstraction is implemented.
Abstraction solves the problem in the design side while Encapsulation is the Implementation.
Encapsulation is the deliverables of Abstraction. Encapsulation barely talks about grouping up your abstraction to suit the developer needs.
Abstraction Example:The Outer Look of a Mobile Phone, which has a display screen and keypad buttons to dial a number.
Encapsulation Example:Inner Implementation detail of a Mobile Phone, how the keypad button and Display Screen are connected with each other using circuits.
Lakshmanan Sethu SankaranarayanPosted Feb 27, 2014, 11:54 PM