wplecturer.com
0 votes
22 views

What is the difference between abstraction and encapsulation?

in Laravel by (67.0k points) | 22 views

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 (67.0k points)

1.6k questions

1.6k answers

81.3k users

5 Online Users
0 Member 5 Guest
Today Visits : 694
Yesterday Visits : 1254
Total Visits : 1884298
Dear All, These are my answers from Quora and primarily Google; please check the answer and from others sites; the answers are free and without any liability.To make a decision, write down all of the positives and negatives on a piece of paper.Thank you, Elias Katsaniotis, MSc.
1,644 questions
1,649 answers
81,318 users
@ 2022 V Katsanioti ,All rights reserved