2.4k questions

2.4k answers

99.5k users

Categories

0 votes
75 views

What is the difference between abstraction and encapsulation?

in Laravel by (95.8k points)

1 Answer

0 votes

Abstraction is the method of hiding the unwanted information. Whereas encapsulation is a method to hide the data in a single entity or unit along with a method to protect information from outside. We can implement abstraction using abstract class and interfaces.

by (95.8k points)
...