Question

Software design How does abstraction differ from encapsulation?

Software design

How does abstraction differ from encapsulation?

Homework Answers

Answer #1

Abstraction is the process of gaining the information whereas encapsulation is the process to contain the information. Abstraction is the method of hiding the unwanted information whereas encapsulation is a method to hide the data from outside world. During software design, The problems of abstraction are solved at the design whereas in encapsulation, problems are solved at the implementation level. We can implement abstraction using abstract class and interfaces whereas encapsulation can be implemented using by the specific access modifiers i.e., private, protected and public.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT