Abstraction Vs Encapsulation
HTML-код
- Опубликовано: 17 окт 2024
- Abstraction Vs Encapsulation
Abstraction
Abstraction hides the internal implementation , and creates the skeleton of what is required for that Entity.
This is achieved by creating a class and defining the member variables, properties and methods inside it, as per the requirement.
Encapsulation
Encapsulation hides the data from external world. It protects the data within class, and exposes methods to the world.
This is achieved by using access modifiers like private, public, protected, internal.
Thank you, this is the first clear explanation I have found!
I found both similar in your video. Don't understand anything. In Abstraction while defining the variable if we are not writing any access modifier then by default it will take private.
Hi Tarang, In order to get more clarity please go through complete playlist ruclips.net/p/PLbwLhauCaWGfY_79saJD-kYq_D-Po_Oct and for your information, internal is the default if no access modifier is specified.
Wonderful to the point explanation 👏🏻
This was the simplest explanation with example.
Thanks man, finally I get it
Thank-you so much Sir. 🙏🙏🙏
Lot of Thanks, Clear Explanation.!!
You are welcome
I like this explanation.
Best explanation ever.
thank you so much sir !
about abstraction wrong explanation