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

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 52

  • @ajithkumar-dt5st
    @ajithkumar-dt5st 10 місяців тому

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

  • @Mabh838
    @Mabh838 11 місяців тому +5

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

  • @User-Dotnet
    @User-Dotnet 6 місяців тому

    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 4 місяці тому

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

  • @abhiranjantiwari6710
    @abhiranjantiwari6710 10 місяців тому +1

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

  • @sameeramadusanka1410
    @sameeramadusanka1410 Місяць тому

    you are like a godfather❤❤❤

  • @ShotGlassesofInk
    @ShotGlassesofInk Рік тому +3

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

  • @Anuj_sk
    @Anuj_sk 2 місяці тому

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

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

  • @veeru445
    @veeru445 Місяць тому +1

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

  • @vishnumaya1930
    @vishnumaya1930 Рік тому +2

    Always excellent sir thankyou

  • @anthonyhansen5165
    @anthonyhansen5165 8 місяців тому

    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?

  • @evelinrubifloresmallma8580
    @evelinrubifloresmallma8580 4 місяці тому +1

    Thanks, you explain all the concept clearly!!

  • @govindbansal2181
    @govindbansal2181 Рік тому +1

    The greatest content on youtube. Respect 🎉🎉

  • @ajaysasane4674
    @ajaysasane4674 5 місяців тому +1

    Thanks sir you are osm personality ❤❤

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

  • @avinashsathe2322
    @avinashsathe2322 5 місяців тому

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

  • @PetsWorldPi4s
    @PetsWorldPi4s Рік тому +1

    So it's basically data models

    • @interviewhappy
      @interviewhappy  Рік тому

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

  • @waqar8544
    @waqar8544 2 місяці тому

    helpful video thank u sir

  • @akashrokade12
    @akashrokade12 Рік тому

    Sir can you schedule some mock interviews for freshers

  • @kurubapavan3669
    @kurubapavan3669 Рік тому

    Thank you sir encapsulation conseft very impartent to interview point

  • @kashimoon100
    @kashimoon100 9 місяців тому

    One of the easiest example to understand this concept. Thanks

  • @SanjaySingh-cd1ke
    @SanjaySingh-cd1ke 2 місяці тому

    Thanku

  • @kyawsuthway5217
    @kyawsuthway5217 9 місяців тому

    Thank you . Your example is so good

  • @saieshwar7816
    @saieshwar7816 Рік тому

    Thanks for detailed explanation, it will help us interview

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

  • @victorumezuruike4155
    @victorumezuruike4155 Рік тому

    Great explanation, thanks

  • @delacliqueentertainment4456
    @delacliqueentertainment4456 11 місяців тому

    Good job. Thanks alot

  • @divyapriya4324
    @divyapriya4324 9 місяців тому

    Thank you Sir👏

  • @vishnuvardhan7160
    @vishnuvardhan7160 Рік тому

    Very useful information sir
    Thank you for sharing