#4.7 Java Tutorial | Inner class

preview_player
Показать описание
In this video we will see :
- Inner class
- Creating outer class
- Calling outer class methods and variables
- Creating Inner class
- Creating object of inner class
- Accessing inner class methods and variables
- Creating Static inner class
- Static variable and static method in outer class
- Member inner classs
- Static inner class
- Anonymous inner class

More Learning :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

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.

milaismyname
Автор

I love your lessons. When I don't understand something, I usually use your videos. You explain simply, and it sinks in. Thank you.

rumajreij
Автор

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.

katherinemorgan
Автор

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 :-)

rohitvlogscanada
Автор

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

nischay
Автор

When I did not understand something clearly I quickly search it on youtube and click on your video. Thank you so much sir.

chanux
Автор

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.

Siddharth-uozw
Автор

You explain very well sir...topics get cleraed very easily

shavetabhalla
Автор

Thankyou very much for your videos, it's really simple to learn by teachers like you.

priyasharmavocal
Автор

sir, if you please explain us why we create an inner class?

ankitabharti
Автор

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
}

ryanomalley
Автор

i need three like buttons!!! nice presentation

senthilchily
Автор

Thanks alot sir... It's very clear and understandable... Your teaching was amazing sir..

mymanishakakarla
Автор

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 .?

tilakram
Автор

I love ur videos uncle ❤️ ur video is better than our online classes

thenerdycoder
Автор

Great explanation of the technical stuff. But I lack an example where it makes sense to use inner classes.

springbootcourse
Автор

How to access this static class the package if the scope is default?

harinimurali
Автор

Your way of explanation is terrific...are there any written notes repository for this?

maahisingh
Автор

I really like these videos. Really good explanations and easy to understand. 10/10

ddds
Автор

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?

adityanpanchal