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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Feb 27, 2014, 6:54 PM EST
Abhay ShankerRank #375 · 6.7K reputationPosted Feb 27, 2014, 7:20 PM EST
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.
Nhlanhla A W Mkhize20 reputationPosted Feb 28, 2014, 12:27 PM EST