#4.7 Java Tutorial | Inner class

  Рет қаралды 147,275

Telusko

Telusko

Күн бұрын

Пікірлер: 80
@rumajreij5437
@rumajreij5437 6 жыл бұрын
I love your lessons. When I don't understand something, I usually use your videos. You explain simply, and it sinks in. Thank you.
@milaismyname
@milaismyname 6 жыл бұрын
You explain so good, realy what is important to understand, in comparison to others. I have seen so many videos on Java, they sometimes speak 20minutes, but don^t say what we realy have to know in order to understand, they just talk and do some things, but do not explain why and how is it in general.
@katherinemorgan6733
@katherinemorgan6733 4 жыл бұрын
I just found your channel, and I'm so glad I stumbled on to it!! Your lectures are very easy to understand and not jargon-y. Thanks so much for sharing your knowledge.
@nischay5430
@nischay5430 6 жыл бұрын
Sir , i am highly thankfully to you as before a week i am not been able to write any code , but with your great teaching efforts now i can understand how programming works . No teacher except you can teach like you in the so simplest way ....... I again thank u for your great efforts.....
@rohitvlogscanada
@rohitvlogscanada 6 жыл бұрын
sir your all videos are very easy to learn and you are best ever teacher for java i always find my solution on your videos i am big fan of you :-)
@chanux2228
@chanux2228 2 жыл бұрын
When I did not understand something clearly I quickly search it on youtube and click on your video. Thank you so much sir.
@Siddharth-uo6zw
@Siddharth-uo6zw 4 жыл бұрын
Soon, your subscribers will reach to 10million I pray to God you are a very good teacher I will watch each and every #Advertisement to support your channel sir.
@shavetabhalla6660
@shavetabhalla6660 4 жыл бұрын
You explain very well sir...topics get cleraed very easily
@priyasharmavocal
@priyasharmavocal 4 жыл бұрын
Thankyou very much for your videos, it's really simple to learn by teachers like you.
@ankitabharti160
@ankitabharti160 6 жыл бұрын
sir,if you please explain us why we create an inner class?
@springbootcourse2906
@springbootcourse2906 2 жыл бұрын
Great explanation of the technical stuff. But I lack an example where it makes sense to use inner classes.
@thenerdycoder07
@thenerdycoder07 4 жыл бұрын
I love ur videos uncle ❤️ ur video is better than our online classes
@senthilchily
@senthilchily Жыл бұрын
i need three like buttons!!! nice presentation
@ryanomalley6327
@ryanomalley6327 2 жыл бұрын
This is far more complicated than it needs to be. You don't need to tie the inner class to the outer object like is done here in the main method. [ Outer.Inner obj1 = obj.new Inner(); ] You could just create the object of the inner class like you would any other object, just initialize the Inner class inside the Outer class body. You dont need to create the object for the inner class in the main method. class OuterClass{ int x=10; Innerclass Innerclass1 = new Innerclass(); class InnerClass { int y =5; //code }
@stupidteous
@stupidteous Жыл бұрын
thanks for this
@saadmanahmed860
@saadmanahmed860 5 жыл бұрын
why i am disposed to this guy's tutorial so much ..he just explains shortly & clearly
@mymanishakakarla8036
@mymanishakakarla8036 3 жыл бұрын
Thanks alot sir... It's very clear and understandable... Your teaching was amazing sir..
@ddds3001
@ddds3001 6 жыл бұрын
I really like these videos. Really good explanations and easy to understand. 10/10
@kogilathotavijayreddy4963
@kogilathotavijayreddy4963 2 жыл бұрын
Best!
@wojtekyt6690
@wojtekyt6690 6 жыл бұрын
Perfect explanation.
@maahisingh381
@maahisingh381 3 жыл бұрын
Your way of explanation is terrific...are there any written notes repository for this?
@amanthakur6913
@amanthakur6913 4 жыл бұрын
i also write curly brackets downwards
@conea6891
@conea6891 3 жыл бұрын
Wow, you are the best!
@sourabhthorat9550
@sourabhthorat9550 3 жыл бұрын
Just wow
@tilakram2577
@tilakram2577 4 жыл бұрын
what if we create a inner class inside my main class (i.e InnerDemo) and how to create object for such case , and in what case we can use it .?
@harinimurali8724
@harinimurali8724 2 жыл бұрын
How to access this static class the package if the scope is default?
@ShuyanStoryTeller
@ShuyanStoryTeller 5 жыл бұрын
Great video, thank you so much.
@nitinduke
@nitinduke 3 жыл бұрын
Amazing explanation sir
@komalpasrija
@komalpasrija 5 жыл бұрын
Hi sir, I have seen lot of videos.. Its much helpful for me i would like to sugegest in some video you have mentioned some text and that are just like a bulb its diverting focus from the viedo. Either you just remove those otherwise it should be stable there.
@Siddharth-uo6zw
@Siddharth-uo6zw 4 жыл бұрын
We find two more class in bin Outer and Outer$Innerclass sir in bin.
@vigneshwarb8635
@vigneshwarb8635 3 жыл бұрын
very useful tutorials sir !
@beluga.314
@beluga.314 2 жыл бұрын
How can we use make object of Outer inside main() even if Outer is not made public? pls explain someone
@samakoushik6235
@samakoushik6235 6 жыл бұрын
general dailylife example for inner class
@myakalakondaiah1940
@myakalakondaiah1940 6 жыл бұрын
Sir it is good but now to implement for example student details in Java in basic rules
@adityanpanchal6976
@adityanpanchal6976 2 жыл бұрын
I can use the static class inside the main method without using outer object !; how it's possible?? Also i can initiate inner class using inner reference & outer's reference but without outer's class name.... What about this?
@chinmaydas4053
@chinmaydas4053 6 жыл бұрын
Thank you sir.Sir why do you stop making data structures & algorithms design videos??..😢😢..
@sheikhrasik2264
@sheikhrasik2264 6 жыл бұрын
what if we have one more class inside the inner class then what would the syntax for creating object for the constructor inside that particular class be? Please help.
@real_hello_kitty
@real_hello_kitty 4 жыл бұрын
Wow, thanks!
@JoshT4life
@JoshT4life 5 жыл бұрын
very well explained
@mahenderpothu5575
@mahenderpothu5575 6 жыл бұрын
Hello sir my passion is android app devoloper Which laptop is best for programming under 40000
@sudipdas491
@sudipdas491 6 жыл бұрын
Sir can we make inner class as a private and then is it possible to access by using outer class object???
@teluskosupport
@teluskosupport Жыл бұрын
Yes, an inner class can be declared as private and once you declare an inner class private, it can be accessed from an object of an outer class. And also private members of a class can be accessed using inner class.
@digitalnomadg
@digitalnomadg 6 жыл бұрын
Sir, can i create an inner class inside InnerDemo class which having main() method ?
@AbdullahAlMamun-fh9gs
@AbdullahAlMamun-fh9gs 6 жыл бұрын
Yes.
@digitalnomadg
@digitalnomadg 6 жыл бұрын
Thanks man :)
@AbdullahAlMamun-fh9gs
@AbdullahAlMamun-fh9gs 6 жыл бұрын
Thank you sir.
@raunakthakkar3516
@raunakthakkar3516 6 жыл бұрын
here why did you created object of static class 🤔🤔🤔
@rakeshreddy1365
@rakeshreddy1365 3 жыл бұрын
he did to show the difference to create obj of inner class in static and non static inner class if inner class is static u dont need to create an object of outer class for creating an object of inner class where as if inner class is non static we need to create an object of outer class to create an object of inner class
@SEVERANCE850
@SEVERANCE850 6 жыл бұрын
Sir u have already made Videos on core Java so why r u waiting your time in it instead u should make videos on Advance Java
@newsdb-crypto
@newsdb-crypto 6 жыл бұрын
yes
@This_Origami
@This_Origami 5 жыл бұрын
did you mean wasting?
@trideepchakraborty1013
@trideepchakraborty1013 4 жыл бұрын
Thank you....
@kanagarajs1191
@kanagarajs1191 3 жыл бұрын
. 75 speed it's better to understand even better
@ravindermacha1233
@ravindermacha1233 3 жыл бұрын
As innner class is static why u need to create object to access it.
@teluskosupport
@teluskosupport Жыл бұрын
It is just created to show you the difference between static and non-static inner class. If inner class is static, you do need to create an object of an outer class to access inner class whereas if inner is non- static, then you have to create an object of outer class to access it.
@charlie3k
@charlie3k 5 жыл бұрын
Excellent explanation! Thank you :)
@monasah604
@monasah604 4 жыл бұрын
Can we define a constructor inside inner class
@teluskosupport
@teluskosupport Жыл бұрын
Yes, we can define a constructor inside an inner class.
@TravelWithLove9
@TravelWithLove9 6 жыл бұрын
Can we extend inner class?While extending it gave me an error.I tried to extend it by Outer.Inner but it still gave me an error
@785_barneetpanda5
@785_barneetpanda5 3 жыл бұрын
why the class Outer has no access specifier (like public class Outer)
@teluskosupport
@teluskosupport Жыл бұрын
The outer class is default public, it can not have access specifier as private or protected. As when we use protected or private modifier to outer class, we can access it within the package and can't access that class outside the package. So, outer class is by default public.
@harshinisistu1711
@harshinisistu1711 4 жыл бұрын
My display class is giving an error of not able to resolve it...please help me
@naveenyadav1766
@naveenyadav1766 Жыл бұрын
Sir I have a doubt
@-indeed8285
@-indeed8285 6 жыл бұрын
When Inner class is static Outer obj = new Outer(); obj.show(); Inner obj1 = new Inner(); //no need to obj or class reference obj1.display(); can you please explain it ???
@-indeed8285
@-indeed8285 6 жыл бұрын
eclipse automatic did ( import Outer.Inner; ) , is it reason?? or something else ???
@ravindermacha1233
@ravindermacha1233 3 жыл бұрын
Yes exactly my question too
@gamingguys6571
@gamingguys6571 6 жыл бұрын
when creating the static inner class object, do we need to mention the outer class name to access the static inner class?
@helloios3626
@helloios3626 6 жыл бұрын
Gaming Guys yes..
@shrach8
@shrach8 4 жыл бұрын
Isn’t that what the video showed? Answer is yes I think
@teluskosupport
@teluskosupport Жыл бұрын
Yes, you need to object of an outer class to access the members of an inner class.
@shravyaghanapuram307
@shravyaghanapuram307 4 жыл бұрын
What is the app you are using to code, sir?
@rakeshreddy1365
@rakeshreddy1365 3 жыл бұрын
ecclipse i guess
@poojasonawane3933
@poojasonawane3933 4 жыл бұрын
Can outer class access inner class member
@jpkarthick869
@jpkarthick869 4 жыл бұрын
Yes
@teluskosupport
@teluskosupport Жыл бұрын
Yes, outer class can also access the private variables of inner class.
@himank363
@himank363 2 жыл бұрын
3:02
@stevejobs5919
@stevejobs5919 4 жыл бұрын
I still dont get "WHY WOULD ANYONE USE AN INNER CLASS INSTEAD OF CREATING A NORMAL OUTSIDE CLASS?" WHY???? WHYY>??
@rakeshreddy1365
@rakeshreddy1365 3 жыл бұрын
it is for more readability and for conscise code
@tooooomboh
@tooooomboh 5 жыл бұрын
Boss
@ramizmostafi3118
@ramizmostafi3118 4 жыл бұрын
You look like Jhony Sins
Java Tutorial | Array Theory
6:28
Telusko
Рет қаралды 172 М.
15.1 Inner Class in Java Tutorial
22:04
Telusko
Рет қаралды 178 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 50 МЛН
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 46 МЛН
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 16 МЛН
#51 This and Super Method in Java
12:11
Telusko
Рет қаралды 120 М.
Inner Class Java Tutorial - Creating and Using Inner Classes
8:21
Coding with John
Рет қаралды 133 М.
Java multithreading 🧶
15:18
Bro Code
Рет қаралды 132 М.
Java For Programmers in 2 hours
2:02:36
Telusko
Рет қаралды 29 М.
Java generics ❓
22:04
Bro Code
Рет қаралды 113 М.
Java Super Keyword Tutorial #87
15:00
Alex Lee
Рет қаралды 230 М.
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,4 МЛН
Interview Question | Comparable vs Comparator in Java
12:58
Telusko
Рет қаралды 646 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 50 МЛН