No video

#6.6 Java Tutorial | Encapsulation

  Рет қаралды 301,751

Telusko

Telusko

Күн бұрын

Пікірлер: 119
@suyashsharma7088
@suyashsharma7088 5 жыл бұрын
You have the best explanations on KZfaq for Java. I'm here in the US, studying at a reputable university, but these guys just assign hardass problems, instead of teaching what the concepts are and how do they apply. Thank you very much :D
@zarakkhan6418
@zarakkhan6418 4 жыл бұрын
Yo, I am here too. Before I saw the name, I was like which university is he talking about lol
@prabeshkhati4398
@prabeshkhati4398 4 жыл бұрын
@@zarakkhan6418 which university do you guys go to??
@naveent2785
@naveent2785 4 жыл бұрын
Well if you are in such reputed university, you are already expected to know very basics in guess
@cartoons__for__kids_Hindi
@cartoons__for__kids_Hindi 3 жыл бұрын
@@naveent2785 actually even Harvard teach basics, it just depends on teachers
@sowndharyas224
@sowndharyas224 4 жыл бұрын
Amazing! So far the best instructor I've ever come across. Thank you!
@trzmaier
@trzmaier 5 жыл бұрын
this is the first time I hear someone explaining why you would not want to access or change the values of instance variables directly. even my lecturer would just shrug and say "you just don't do it" or "this is not object oriented programming" (I learned to truly hate the latter phrase). thank you!
@shasandhakal9338
@shasandhakal9338 2 жыл бұрын
Sir I have attended many Java classes but never understood the concept of OOPs until I saw your video. You are really a great instructor.
@PramodKumar1207
@PramodKumar1207 6 жыл бұрын
Wow Sir! Its amZINGGGGG........I went through many tutorials but never got this concept... a big Thank You
@vamshibhai5855
@vamshibhai5855 2 жыл бұрын
Best one i ever found in youtube Sir you are the best its been honour for me sir to be your student thanking you sir for your pateince,helping nature and Gratitude
@jkate9695
@jkate9695 3 жыл бұрын
Fast and direct! Thank you for answering my question on why getters and setters are needed!
@pranavk9676
@pranavk9676 3 жыл бұрын
You are very much better than other complicated OOPs explanations. You just saved my day!!🤗🤗
@Shaxadd
@Shaxadd 4 жыл бұрын
OMG LITERALLY THE BEST VIDEO TO UNDERSTAND ENCAPSULATION ON ENTIRE INTERNET
@RamKumar-ui1sp
@RamKumar-ui1sp 6 жыл бұрын
bro amazing so may thing in one video, well explained business scenarios
@lychenus
@lychenus 2 жыл бұрын
at least you mentioned that you can add logs or add validations before you store or read data. most videos on youtube or teachers are simply only describing encapsulation, not explaining why you need that.
@bhaskarakula2786
@bhaskarakula2786 4 жыл бұрын
Thank you So much bro..it is a wonderful video i have never seen this kind of nice videos.Thanks again.../2
@mathewfrancis4167
@mathewfrancis4167 4 жыл бұрын
god your better than most american java tutorials......! thanks ; )
@siddhithakur2399
@siddhithakur2399 Жыл бұрын
amazing explanation straight to the point
@lalithyakothakota5296
@lalithyakothakota5296 Жыл бұрын
Hi your videos are the best , where I get some clarity. I start surfing the concepts, get no clarity and end up watching your videos and keep motivated. Can you please compare and explain the difference between abstraction and encapsulation?
@akashkapade5658
@akashkapade5658 6 жыл бұрын
Sir, Could you please create new pack of these newly created videos. So that I would be easy to see all new videos in one list. Thanks.
@raghavtripathi9555
@raghavtripathi9555 6 жыл бұрын
till now I had just read..the definition of this principle​ of oop but..today...I experienced it
@mohammadbhuiyan357
@mohammadbhuiyan357 5 жыл бұрын
you are a amazing teacher. Within very short time teach a huge topic everything, I could not find any one like this before. Would you be able to share your code in your public github or any other place for your viewers. Thanks
@leslieleslie336
@leslieleslie336 4 жыл бұрын
I want to ask who are the "users" that can access your private variables? Programmers? End user of the application? I still dont get the benefit of how the encapsulation really help, because the programmer can just open the source file and modify the source to access the private variables
@GamerForeverChannel
@GamerForeverChannel 4 жыл бұрын
what is the best IDE for creating PC application`s? Eclipse?
@syedidrees6220
@syedidrees6220 5 жыл бұрын
huge thanks... give ocean of knowledge is very less time...
@milankbudha
@milankbudha 4 жыл бұрын
thank u navin sir from Nepal
@milaismyname
@milaismyname 6 жыл бұрын
Wow, the example with the logfiles was very helpful, thank you!
@alittlecoding
@alittlecoding 6 жыл бұрын
agreed . was going to comment the same.
@maruf7956
@maruf7956 6 жыл бұрын
Your sexy
@gauravnightchargers
@gauravnightchargers 5 жыл бұрын
@@maruf7956 *you're
@maruf7956
@maruf7956 5 жыл бұрын
@@gauravnightchargers thanks now my life is comlplete now i can die in peace
@gauravnightchargers
@gauravnightchargers 5 жыл бұрын
@@maruf7956 My Mission here is complete,need to go where my people need me on another planet.
@Westerntales
@Westerntales 4 жыл бұрын
im ABC student in Banglore your concepts are deeply going inside
@tejasaimaheshchennamsetti3247
@tejasaimaheshchennamsetti3247 2 жыл бұрын
Why do we need to access variables through methods(only!), what's the use of it? And why do we have to make a variable declaration as private? & What is a log file?
@naveent2785
@naveent2785 4 жыл бұрын
I'm also thinking implementation of the object should be done through methods and so they need to be called to instantiate an object. But isn't a constructor can also be used to achieve this purpose. However, constructor creates a new object so everytime we want to change the member variables we can't create one!
@smilekids7
@smilekids7 Жыл бұрын
Really good explanation!! Thanks :)
@zygopok1
@zygopok1 6 жыл бұрын
Very nice...awesome explanation...you should create a playlist for tutorials for java for beginners please
@user-qj8bq1yd5s
@user-qj8bq1yd5s Жыл бұрын
Amazing video!!
@chetansingh2426
@chetansingh2426 3 жыл бұрын
that was very cool and to the point viedo thank you
@ravikanthvanapalli9475
@ravikanthvanapalli9475 2 жыл бұрын
sir we can write the code this.rollno=rollno and next line return rollno ;
@Luisgui76
@Luisgui76 5 жыл бұрын
Thank You! best explanations on youtube!
@mohanrammanikandan7939
@mohanrammanikandan7939 5 жыл бұрын
Thank you, Sir. I couldn't get the "Log files" part. Can you please explain it ?
@bluezgoldz
@bluezgoldz 4 жыл бұрын
Might be too late to get to you but if I'm not mistaken, what he meant was you can track when your variable's value has changed because in order to change the variable within a getter/setter (POJO class) you'll need to access a method(). as you already know, you can do many funky stuff inside a method() including creation of a log file or a simple sysout statement to notify yourself that the variable has changed.
@target__iit
@target__iit 5 ай бұрын
Is just like a notification to the admin that somethings been accessed or modified in the program by a user.
@chinmaydas4053
@chinmaydas4053 6 жыл бұрын
your video is always a great learning
@vaibhavkaushik627
@vaibhavkaushik627 2 жыл бұрын
Thank you for the video. It helped me
@ramanjuluk3217
@ramanjuluk3217 3 жыл бұрын
Second part is import to interview purpose..90% people don't know this and majority people thinking that why setters and getters amd intead of these we can make public variables.
@anandn9869
@anandn9869 2 жыл бұрын
This is not encapsulation.. many websites state encapsulation is for data security which is completely wrong.. Encapsulation just contains attributes and methods to operate on that properties in a single unit.. It's like capsule containing number of different ingredients. In your case once we create Student object, no matter what or where this object is transferred all its properties are encapsulated in it.. Data hiding is some thing which can be made by setting fields as private. Abstraction can be achieved to hide the implementation details to make sure the client does not need change if some thing that can be controlled inside a method itself.. Pleas correct it..
@akshaybhagat2022
@akshaybhagat2022 Жыл бұрын
Very nice teach 👍
@nagmamittal9419
@nagmamittal9419 4 жыл бұрын
hey, can you put the video of programming using three concept in java data abstraction, encapsulation and polymorphism. Thanks
@kumark918
@kumark918 3 жыл бұрын
Someone pls answer why should I use getters and setters
@divinity5250
@divinity5250 2 жыл бұрын
Why we need encapsulation at 4:35 mins
@sivakrishnat5471
@sivakrishnat5471 3 жыл бұрын
why cant you do logging in main method itself?
@rahulnaraniya1222
@rahulnaraniya1222 4 жыл бұрын
Great explanation. Keep it up.
@Dyslexic_Neuron
@Dyslexic_Neuron 5 жыл бұрын
encapsulation is not just about putting getters and setters for private variables
@krishnapavan7688
@krishnapavan7688 2 жыл бұрын
what is the purpose of declaring variables as private is not clear
@veerraghavareddy735
@veerraghavareddy735 6 жыл бұрын
Can you explain log file deeply because i cannot understand
@PatakhorPallab
@PatakhorPallab Жыл бұрын
Why at the later part we used this keyword?
@nikitaajudiya7099
@nikitaajudiya7099 4 жыл бұрын
well explained!!!
@amarnathtatireddy4588
@amarnathtatireddy4588 4 жыл бұрын
Please upload tutorials for SQL server
@millenmarbun24
@millenmarbun24 5 жыл бұрын
good explanation but try to speak slower
@firdauspuzi1145
@firdauspuzi1145 4 жыл бұрын
Agreed but as a short-term solution you can adjust the playback speed to x0.75
@rishabhsingh453
@rishabhsingh453 4 жыл бұрын
I don't find this video in playlist
@jeevan4437
@jeevan4437 3 жыл бұрын
I know Nobody gonna reply it but even though... The burning question is instead of using get and set as encapsulation why don't we simply make variable private and use a method in a class to pass and call values... class Sample { private String name="Hawaii"; private int num; public int modern(int name) // Like This... { this.name=name; return name; }
@smile-me2ik
@smile-me2ik 3 жыл бұрын
Mind blowing 👍👍👍
@debrajroy1290
@debrajroy1290 6 жыл бұрын
nice...deseerves to get a like
@loknathmahapatra192
@loknathmahapatra192 3 жыл бұрын
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??
@traderslearningbackyard2191
@traderslearningbackyard2191 3 жыл бұрын
The advantage is that now I have controlled access. It is like having librarian in college to provide books.Even now you will get books only difference is librarian can put restrictions not to issue more than 3 books at a time.same is case with making private and expose them through public methods
@sivasandeepj
@sivasandeepj 6 жыл бұрын
Awesome! Thanks !
@mridulmishra4910
@mridulmishra4910 2 жыл бұрын
please give me the link in the description of $this keyword video.
@anuishwarya6601
@anuishwarya6601 4 жыл бұрын
Sir can you explain me the difference between constructor and getters and setters
@PaweCudzio
@PaweCudzio 6 жыл бұрын
Akcessors are not encapsulation. Accessors do not make Encapsulation. Encapsulation encapsulate some implemetation. U do not need know how some class work. This is very basic exampel.
@siddhantbhatt618
@siddhantbhatt618 4 жыл бұрын
it showing error if i declare class in public
@jeevan4337
@jeevan4337 5 жыл бұрын
How is it data hiding? We can see the data "Navin" etc
@prajs2825
@prajs2825 5 жыл бұрын
Nice video...always appreciate but How fast explaination is..able to understand but will forget if once close the video...this speed of explaination not suits to students who wants to learn from videos. Plz make it slow if urs making this video for students too its helpful.
@yugandharjanardhan6466
@yugandharjanardhan6466 5 жыл бұрын
I am a student and this is very useful instead of having a 20 minutes video.
@divyatej.a1553
@divyatej.a1553 3 жыл бұрын
Sir, what is the use of private over here
@yuwendridesilva6956
@yuwendridesilva6956 3 жыл бұрын
to the point!
@laeeqahmed9526
@laeeqahmed9526 2 жыл бұрын
Thanks!
@sophiawan7038
@sophiawan7038 5 жыл бұрын
Thank you so much! The video is very helpful!
@chandankumar-jp4li
@chandankumar-jp4li 3 жыл бұрын
Attribute== private Getter/setter== public
@atifworld
@atifworld 2 жыл бұрын
thanks
@sujeethkumarch2672
@sujeethkumarch2672 4 жыл бұрын
Only one word i can say woo..w
@Dyslexic_Neuron
@Dyslexic_Neuron 5 жыл бұрын
Great explanation
@General_Aladeen
@General_Aladeen 4 жыл бұрын
very well explained and easy to understand.
@manikanta-sr3zc
@manikanta-sr3zc 5 жыл бұрын
Log file means sir
@hungerheal7591
@hungerheal7591 5 жыл бұрын
Thanku sir🙏
@pritamparab6449
@pritamparab6449 6 жыл бұрын
Sir make video on connection pooling 🙏
@shivammaniya2962
@shivammaniya2962 4 жыл бұрын
thanx u thanx u
@alexandruteodor3585
@alexandruteodor3585 3 жыл бұрын
Thank you!
@420sw4g
@420sw4g 5 жыл бұрын
Very nice m8
@ravikanthvanapalli9475
@ravikanthvanapalli9475 2 жыл бұрын
can i write like that
@maitisumitranjan
@maitisumitranjan 6 жыл бұрын
nice explanation.
@HariMudhirajVlogs
@HariMudhirajVlogs 2 жыл бұрын
Tq bava
@anchuarun835
@anchuarun835 4 жыл бұрын
Plz talk abt helpers
@jayavardhan0760
@jayavardhan0760 3 жыл бұрын
Thanks sir
@kamalkushwah2659
@kamalkushwah2659 6 жыл бұрын
Very helpful
@bhaneshwar
@bhaneshwar 6 жыл бұрын
logfiles , ultimate
@abhiram6087
@abhiram6087 3 жыл бұрын
what happens if i put my variables public.
@traderslearningbackyard2191
@traderslearningbackyard2191 3 жыл бұрын
Then anyone can come and change and no control
@traderslearningbackyard2191
@traderslearningbackyard2191 3 жыл бұрын
Also say i have sid property in student object and if it is public anyone can access sid property from reference variable right like Student st =new Student(); st.sid=10; say there are hundreds of places like this and imagine u want to change from sid to studentId then u need to find thousand places and modify it it is going to break all existing code right ? Instead if u have exposed sid only through public method and making private property sid. If i want to change property name from sid to studentId i have to just change property and in public method from sid to StudentId now all my 1000 places which use my public method wont get affected at all as it doesnt know the implentation if i am using sid or studentId internally
@harshkhantyal7147
@harshkhantyal7147 5 жыл бұрын
great vedio
@marcobrace
@marcobrace 5 жыл бұрын
Metods
@ahmadaklakh6736
@ahmadaklakh6736 Жыл бұрын
Joney baba ki jai🙈
@rahulgoti3864
@rahulgoti3864 6 жыл бұрын
Thank You
@ehelper8099
@ehelper8099 5 жыл бұрын
Sir, what does actually Telusko mean?
@rangabharath4253
@rangabharath4253 5 жыл бұрын
In Telugu language, Telusko means to know about something.
@ehelper8099
@ehelper8099 5 жыл бұрын
@@rangabharath4253 ohh..That is the meaning. Thank you sir for this kind sort of information.
@RajatGuptaOnline
@RajatGuptaOnline 6 жыл бұрын
Awesome :)
@saleemali594
@saleemali594 5 жыл бұрын
Lectures are so boring and slow. These really help thanks.
@dancewithehsaas
@dancewithehsaas 5 жыл бұрын
thank u!
@chandrabhan3501
@chandrabhan3501 6 жыл бұрын
Great
@joybhowmik4945
@joybhowmik4945 5 жыл бұрын
thankuu
@samarthyarishabh5727
@samarthyarishabh5727 2 жыл бұрын
Great video two words though, GO SLOW
@beastconquerer1488
@beastconquerer1488 5 жыл бұрын
plz explain more clear and speak less, in which ever language you are comfortable in....
@vijayreddy-uw2xg
@vijayreddy-uw2xg 4 жыл бұрын
couthy exegesis......
@danigol6663
@danigol6663 6 жыл бұрын
its fast man, speak a little slower
@alittlecoding
@alittlecoding 6 жыл бұрын
you can slow down the speed of the video.
#6.7 Java Tutorial | Wrapper class | AutoBoxing
8:35
Telusko
Рет қаралды 114 М.
#40 Encapsulation in Java
11:42
Telusko
Рет қаралды 166 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4 МЛН
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 8 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 32 МЛН
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 505 М.
What is JSON ?
11:56
Telusko
Рет қаралды 1,1 МЛН
Interfaces vs Abstract Classes
14:43
Raw Coding
Рет қаралды 14 М.
Learn How to Use Abstract Classes
17:28
Amigoscode
Рет қаралды 67 М.
Java Polymorphism Fully Explained In 7 Minutes
7:16
Coding with John
Рет қаралды 307 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 912 М.
Generics in Java
14:26
Telusko
Рет қаралды 507 М.
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 539 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4 МЛН