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

Поделиться
HTML-код
  • Опубликовано: 18 июн 2024
  • Q. What is Encapsulation?
    Q. How to implement encapsulation in real applications?

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

  • @Mabh838
    @Mabh838 7 месяцев назад +2

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

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

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

  • @evelinrubifloresmallma8580
    @evelinrubifloresmallma8580 Месяц назад +1

    Thanks, you explain all the concept clearly!!

  • @avinashsathe2322
    @avinashsathe2322 Месяц назад

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

  • @ShotGlassesofInk
    @ShotGlassesofInk 10 месяцев назад +3

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

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

      Thanks and all the best for your career.

  • @kashimoon100
    @kashimoon100 5 месяцев назад

    One of the easiest example to understand this concept. Thanks

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

    Always excellent sir thankyou

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

    The greatest content on youtube. Respect 🎉🎉

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

      I appreciate that. Thanks @govindbansal2181

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

    Thanks for detailed explanation, it will help us interview

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

    Great explanation, thanks

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

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

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

    Thanks sir you are osm personality ❤❤

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

    Thank you sir encapsulation conseft very impartent to interview point

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

    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?

  • @delacliqueentertainment4456
    @delacliqueentertainment4456 8 месяцев назад

    Good job. Thanks alot

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

    Thank you . Your example is so good

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

    Very useful information sir
    Thank you for sharing

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

    Sir can you schedule some mock interviews for freshers

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

    Thank you Sir👏

  • @User-Dotnet
    @User-Dotnet 9 месяцев назад +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  9 месяцев назад +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 9 месяцев назад

      @@interviewhappy Thank you Happy got it.

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

    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!?

  • @ezhil4124
    @ezhil4124 Месяц назад

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

  • @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?

  • @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.

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

    So it's basically data models

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

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