Why encapsulation is important || encapsulation in java || Java OOP theory

preview_player
Показать описание
Encapsulation is defined as the wrapping up of data members under a single unit. This is the simplest definition if you are trying to understand what is encapsulation in java.
In java, we can treat our class as a container that can contain variables, methods, and blocks. We must secure them by giving them correct access.
Using encapsulation we can hide our variables and can give them either read or write access. We can also give both of the access to variables by writing both getter and setter methods for our variables.

Please follow this video to get a foundation about the encapsulation concept. So this is the checklist for today's video.

2.Why encapsulation is important
3.Learn encapsulation in java with example
4.How to secure our java variables
4.Private access modifiers in java
7.Conclusion: Why encapsulation is an important java oop theory

subscribe to my channel by clicking on the link below.

Stay tuned and like my Facebook page for more.

Music :
-----------
credits : -
1)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0

(intro)

2)
NCM Epic Music Ender Guney

-----

intro template :
Рекомендации по теме
Комментарии
Автор

It's been two years since I have uploaded this video. I never published it because I felt the audio was not great. Today I have made up my mind. Let's make it public.

SeleniumExpress
Автор

the superb explanation for encapsulation with the object store and database examples... thanks bhai

sivamech
Автор

ur explaination is really good, helped me a lot.

darshanm
Автор

Hello....I am watching ur videos from past 1 month..they are really good..I am planning to switch after 2 years of experience in java..can u please make videos on oops concepts and other core java topics in depth with examples so that it will helpfull for us because ur way of teaching is really good...u not only explain but also u code it and show....that is the best part

vijayalakshmipatil
Автор

Maaan! your explanation is just like WOW....you are so articulate....I watched several of your videos...please keep it up and thank you so much.

mostafamohammadi
Автор

Very good explanation..
Please make some videos on multithreading.

pranayajadhav
Автор

Very nice explanation .. Pls upload java basics videos like this which will help beginners a lot.
Thank you !

PRUS
Автор

Keep uploading Java concepts at regular interval. I m biggest fan of urs. BHAI video upload kariba pain besi tym niantu nahi...

manojrout
Автор

Hi bro your teaching style awesome, it give more benefit, pls make videos about ORM, hibernate,servelet

muthupandynagendran
Автор

thanks u for this...its realy useful😊..i have been waiting for this video..now wait is thanks....plz make some video on multithreading in depth 🙏🙏🙏🙏🙏🙏

dineshdethe
Автор

the way of explanation is awesome !! please do videos concept vise, if you take one concept for eg oops please do it everything like inheritance abstraction interface and encapsulation

vijivenkat
Автор

Why do we need encapsulation in the programming?

Whenever I ask this question to any of my peers or in almost all the tutorials, everyone says encapsulation is used to protect our variables from the outer world or other classes. Keep data secure.

Even though I've been using encapsulation & coding for the past 4 years but I don't understand the real-time use case of this. Why do we need to hide the variables to be modified from another class?

However, the developer who has access to the other class will have access to the complete project, he can access all the classes in the project. He can access the methods of the encapsulated class & he can still modify the data of the variable.

ranjitharuchamy
Автор

Sir,
We are eagerly waiting for spring video and you also commited to upload by this week end but you are doing that, Ok sir it is your choice. To get a job by learning spring from you is a dream for me which will remain as dream only.

susantdash
Автор

Please, next time attach the microphone to your shirt, it s so hard to catch what are you saying because your voice is far away. Overall, excellent explanation, watching all your videos for a deeper understanding of Java. Thank you for your hard work

ulfatahmad
Автор

Both are same right like change and fetch data but why need to create methods..?

omit_krish
Автор

Awesome tutorial great and also thankyou :)

prajwalmj
Автор

we declare the private variables so that couldn't be accessible from out of class. But we can implement or access them out of class using setter getter method. So if we have to implement it using setter getter method than any other person can implement it using setter getter method. . So how we are safe from manipulation??

loknathmahapatra
Автор

can u include tutorial about java multithreading interview questions//?

hellwidu
Автор

Overall content is good jst one thing is your echo is very high

sourabhdhotre
Автор

How can you change the balance if the customer deposits or withdraws amount if you don't have setter method?

pavithravenkatesh