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

  Рет қаралды 21,125

Interview Happy

Interview Happy

Күн бұрын

Q. What is Encapsulation?
Q. How to implement encapsulation in real applications?

Пікірлер: 46
@Mabh838
@Mabh838 8 ай бұрын
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 7 ай бұрын
Hi sir. Your videos are very useful. Your teaching is awesome. I give you a teaching award 🎉. Thank you for your valuable content.
@ShotGlassesofInk
@ShotGlassesofInk 11 ай бұрын
This helped me understand the concept a lot. Thank you!
@interviewhappy
@interviewhappy 11 ай бұрын
Thanks and all the best for your career.
@anthonyhansen5165
@anthonyhansen5165 5 ай бұрын
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 Ай бұрын
Thanks, you explain all the concept clearly!!
@interviewhappy
@interviewhappy Ай бұрын
Glad it was helpful!
@vishnumaya1930
@vishnumaya1930 Жыл бұрын
Always excellent sir thankyou
@interviewhappy
@interviewhappy Жыл бұрын
Always welcome Vishnu
@avinashsathe2322
@avinashsathe2322 2 ай бұрын
good explain I tried to find exact example of encapsulation but here is right place
@interviewhappy
@interviewhappy 2 ай бұрын
Glad it was helpful!
@kashimoon100
@kashimoon100 6 ай бұрын
One of the easiest example to understand this concept. Thanks
@interviewhappy
@interviewhappy 5 ай бұрын
Glad it was helpful!
@saieshwar7816
@saieshwar7816 Жыл бұрын
Thanks for detailed explanation, it will help us interview
@interviewhappy
@interviewhappy Жыл бұрын
Glad it was helpful! Sai Eshwar
@govindbansal2181
@govindbansal2181 10 ай бұрын
The greatest content on youtube. Respect 🎉🎉
@interviewhappy
@interviewhappy 10 ай бұрын
I appreciate that. Thanks @govindbansal2181
@abhiranjantiwari6710
@abhiranjantiwari6710 7 ай бұрын
Hello sir , are there any videos for design patterns. Please provide us some videos for the same.
@victorumezuruike4155
@victorumezuruike4155 10 ай бұрын
Great explanation, thanks
@interviewhappy
@interviewhappy 10 ай бұрын
Your Welcome @victor
@ajaysasane4674
@ajaysasane4674 2 ай бұрын
Thanks sir you are osm personality ❤❤
@interviewhappy
@interviewhappy 2 ай бұрын
Most welcome 😊
@kurubapavan3669
@kurubapavan3669 Жыл бұрын
Thank you sir encapsulation conseft very impartent to interview point
@interviewhappy
@interviewhappy Жыл бұрын
Most welcome Kuruba Pavan
@akashrokade12
@akashrokade12 Жыл бұрын
Sir can you schedule some mock interviews for freshers
@kyawsuthway5217
@kyawsuthway5217 6 ай бұрын
Thank you . Your example is so good
@interviewhappy
@interviewhappy 6 ай бұрын
Thanks a lot
@delacliqueentertainment4456
@delacliqueentertainment4456 8 ай бұрын
Good job. Thanks alot
@interviewhappy
@interviewhappy 8 ай бұрын
You are welcome brother
@vishnuvardhan7160
@vishnuvardhan7160 Жыл бұрын
Very useful information sir Thank you for sharing
@interviewhappy
@interviewhappy Жыл бұрын
Most welcome Sir. Vishnu
@User-Dotnet
@User-Dotnet 3 ай бұрын
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
@User-Dotnet
@User-Dotnet 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@interviewhappy Thank you Happy got it.
@divyapriya4324
@divyapriya4324 6 ай бұрын
Thank you Sir👏
@interviewhappy
@interviewhappy 6 ай бұрын
Most welcome @divya
@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 Жыл бұрын
yes we have getData() and setData() in Java
@danieldonovan6703
@danieldonovan6703 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
So it's basically data models
@interviewhappy
@interviewhappy Жыл бұрын
Yes Piyush, the basic name is property, in mvc we call it models.
Inheritance Real Application Use in C# .NET
10:47
Interview Happy
Рет қаралды 13 М.
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
Encapsulation in c# | Practical OOPs with c#
22:42
Ravindra Devrani
Рет қаралды 8 М.
IEnumerable, IEnumerator, IQueryable in C# .NET
6:13
Interview Happy
Рет қаралды 37 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 861 М.
Delegates & Events in C# .NET
6:04
Interview Happy
Рет қаралды 41 М.
OOP interview questions :- What is the difference between Abstraction and Encapsulation ?
12:34
.NET Interview Preparation videos
Рет қаралды 782 М.
Top 30  .Net Core Interview Questions in 30 mins - .NET C#
37:11
Interview Happy
Рет қаралды 296 М.
"Don't Use Fields in C#! Use Properties Instead" | Code Cop #003
10:27
Object-oriented Programming in 7 minutes | Mosh
7:34
Programming with Mosh
Рет қаралды 3,8 МЛН
Abstract Class vs Interface (Real Application Use) in C# .NET
6:18
Interview Happy
Рет қаралды 55 М.