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.

Комментарии • 13

  • @S.Passariello
    @S.Passariello 2 года назад +11

    Thank you, this is the first clear explanation I have found!

  • @tarangrohit6934
    @tarangrohit6934 Год назад +5

    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.

    • @ProgrammingTree
      @ProgrammingTree  Год назад

      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.

  • @princerana236
    @princerana236 2 года назад +4

    Wonderful to the point explanation 👏🏻

  • @akshayraut858
    @akshayraut858 7 месяцев назад

    This was the simplest explanation with example.

  • @ForeverChip03
    @ForeverChip03 Год назад +4

    Thanks man, finally I get it

  • @snape0001
    @snape0001 11 месяцев назад

    Thank-you so much Sir. 🙏🙏🙏

  • @suriyae.s2107
    @suriyae.s2107 2 года назад +5

    Lot of Thanks, Clear Explanation.!!

  • @BimalDaslol
    @BimalDaslol Год назад +1

    I like this explanation.

  • @skmumenulislam7505
    @skmumenulislam7505 2 года назад +1

    Best explanation ever.

  • @01utpalraj95
    @01utpalraj95 10 месяцев назад

    thank you so much sir !

  • @bishamkhatri6956
    @bishamkhatri6956 4 месяца назад

    about abstraction wrong explanation