Encapsulation vs abstraction real world example

0 votes
I can think of the interaction between a user and a mobile phone as an example of encapsulation. The user does not need to understand the internal workings of the phone in order to utilise it, which is referred to as abstraction. Where does encapsulation, on the other hand, fit into this scenario? Could someone please enlighten me on this?
Jun 11 in C# by pranav
• 2,320 points
9 views

1 answer to this question.

0 votes
Encapsulation is a technique for "information concealment," so you don't "need to know the inside workings of the mobile phone to operate" it, as you put it. Without knowing the implementation details, you have an interface to access the device behaviour.

On the other hand, abstraction might be defined as the ability to utilise the same interface for multiple objects. There can be multiple implementations of the same interface. Encapsulation obscures details.
answered Jun 21 by jyoti
• 1,240 points

Related Questions In C#

0 votes
0 answers

OOP real world example

I have a simple shopping cart model ...READ MORE

Jun 11 in C# by jyoti
• 1,240 points
4 views
0 votes
1 answer

What are the differences between C, C# and C++ in terms of real-world applications?

C is a bare-bones, straightforward, and clean ...READ MORE

answered May 30 in C# by rajiv
• 1,620 points
21 views
0 votes
1 answer

How abstraction and encapsulation differ

They are, in my opinion, slightly different ...READ MORE

answered Jun 9 in C# by rajiv
• 1,620 points
10 views
0 votes
1 answer

C# - Can someone please show me a very simple example of Interfaces

Take this as example interface IFlyable { ...READ MORE

answered May 30 in C# by rajiv
• 1,620 points
14 views
0 votes
1 answer

Encapsulation of subclasses from a constructor in C#

If you think about it in terms ...READ MORE

answered Jun 11 in C# by pranav
• 2,320 points
11 views
+5 votes
1 answer

What are metaclasses in Python?

A metaclass instantiates and defines behavior for ...READ MORE

answered Sep 11, 2018 in Python by Priyaj
• 58,080 points
206 views
0 votes
1 answer

__init__ and self in python

The self variable represents an instance of ...READ MORE

answered Sep 18, 2018 in Python by SayantiniDeb
• 200 points
262 views
+3 votes
2 answers

What does Python _init_ and self do?

Hey @Anirudh!  Self The self keyword is used to access ...READ MORE

answered Oct 31, 2018 in Python by Omkar
• 69,210 points
4,188 views
0 votes
1 answer

Meta classes in Python

A Metaclass is the class of a ...READ MORE

answered Oct 31, 2018 in Python by SDeb
• 13,300 points
199 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP