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, 2022 in C# by pranav
• 2,590 points
13,341 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, 2022 by jyoti
• 1,240 points

Related Questions In C#

0 votes
1 answer

OOP real world example

This is what I believe. OOP does not ...READ MORE

answered Jul 4, 2022 in C# by krishna
• 2,820 points
1,002 views
0 votes
0 answers

Use of interfaces, practical and real world example

I've been attempting to figure out what ...READ MORE

Jun 11, 2022 in C# by krishna
• 2,820 points
1,140 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, 2022 in C# by rajiv
• 1,620 points
698 views
0 votes
1 answer

How abstraction and encapsulation differ

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

answered Jun 9, 2022 in C# by rajiv
• 1,620 points
888 views
0 votes
0 answers

C# Threading in real-world apps

Learning about threading is indeed fascinating, and ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
443 views
0 votes
0 answers

Abstract Class:-Real Time Example

In a recent interview, I was asked ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
453 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,020 points
857 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
957 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,220 points
6,718 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
618 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP