What is Encapsulation in C# .NET? How to implement encapsulation in real applications?

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

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

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

    I like your Teaching ❤ 1. Short (less than 10 m) 2. Explain with examples 3 . Story telling rather than hard technical definition

  • @kashimoon100
    @kashimoon100 10 месяцев назад +1

    One of the easiest example to understand this concept. Thanks

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

    The greatest content on youtube. Respect 🎉🎉

  • @vishnumaya1930
    @vishnumaya1930 Год назад +2

    Always excellent sir thankyou

  • @ShotGlassesofInk
    @ShotGlassesofInk Год назад +3

    This helped me understand the concept a lot. Thank you!

  • @ajithkumar-dt5st
    @ajithkumar-dt5st 11 месяцев назад

    Hi sir.
    Your videos are very useful.
    Your teaching is awesome.
    I give you a teaching award 🎉. Thank you for your valuable content.

  • @veeru445
    @veeru445 2 месяца назад +1

    Thank you sir for all your efforts. It was so easy to understand.

  • @evelinrubifloresmallma8580
    @evelinrubifloresmallma8580 6 месяцев назад +1

    Thanks, you explain all the concept clearly!!

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

    helpful video thank u sir

  • @ajaysasane4674
    @ajaysasane4674 7 месяцев назад +1

    Thanks sir you are osm personality ❤❤

  • @avinashsathe2322
    @avinashsathe2322 6 месяцев назад

    good explain I tried to find exact example of encapsulation but here is right place

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

    Thank you sir encapsulation conseft very impartent to interview point

  • @anthonyhansen5165
    @anthonyhansen5165 9 месяцев назад

    So, just so I have this straight encapsulation requires the getter and setter to follow the methodology and to be able to call the properties and functions in other classes?

  • @abhiranjantiwari6710
    @abhiranjantiwari6710 11 месяцев назад +1

    Hello sir , are there any videos for design patterns. Please provide us some videos for the same.

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

    Thank you . Your example is so good

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

    Thanks for detailed explanation, it will help us interview

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

    Very useful information sir
    Thank you for sharing

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

    Good job. Thanks alot

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

    Great explanation, thanks

  • @SanjaySingh-cd1ke
    @SanjaySingh-cd1ke 3 месяца назад

    Thanku

  • @sameeramadusanka1410
    @sameeramadusanka1410 3 месяца назад

    you are like a godfather❤❤❤

  • @User-Dotnet
    @User-Dotnet Год назад +2

    Hi Happy suppose in a class if we use private for data field and not declare any property so its accesing within the class only. So will it be secure without binding the property?

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

      Inside the class, using the class private variable is not a security issue. Like inside bank, the money is safe but not outside :)

    • @User-Dotnet
      @User-Dotnet Год назад

      @@interviewhappy Thank you Happy got it.

  • @ezhil4124
    @ezhil4124 6 месяцев назад

    What does means warapping inti single unit? Can you explain in detail

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

    Thank you Sir👏

  • @User-Dotnet
    @User-Dotnet 7 месяцев назад

    So we are violating Encapsulation here to accessing data fields without property or a method.is this approach is Insecure right?and Can I say in Interviews like Encapsulation is also a secure thing by wrapping fields with methods or properties right!?and one more doubt is we can also wrap data fields with Constructer also right!?

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

    Sir can you schedule some mock interviews for freshers

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

    Sir can you please make video on property vs field

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

      Sure Piyush, but field represent data and property is a specialized function. That you should always remember.

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

    Sir, In Java do we have "get" , "set" properties like we have in C# or we have to write methods like getData(), setData() .?

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

      yes we have getData() and setData() in Java

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

      he did not ask that. he's asking "Does JAVA have getters and setters", like the properties in C#

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

      @@danieldonovan6703 yes bro. does java have it or we have to write a function to get and set?

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

    So it's basically data models

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

      Yes Piyush, the basic name is property, in mvc we call it models.

  • @Anuj_sk
    @Anuj_sk 3 месяца назад

    What is abstraction....samjha dogey chacha....toh encapsulation samjh aajaega