Inner Class Java Tutorial #81

preview_player
Показать описание

An inner class in Java, is a class inside of a class, like this:

class ClassOne {

class ClassTwo {

}

}

A class just has variables and methods. But you can also put another class inside and make an inner class (i.e nested class) for readability and maintainability.

I hope you enjoyed this inner classes tutorial!

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee
Рекомендации по теме
Комментарии
Автор

Hi Alex! I'm prepping for my Java certification as a high school student and have been slowly burning through all your videos this summer. I can't thank you enough for all the free, high quality tutorials you've given all of us and hope you know that what you're doing is really helping us kiddos get into computer science.

spicynoodles
Автор

I've binge-watched all your videos on java basics and intermediate java and I practiced at the same time and I must say it's the first time I have all these cleared up inside my head. Thank you for everything you did for us! You saved a lot of us :)

celephaisx
Автор

I really admire how you can make Java easy to understand and not getting complicated. Thank you!!

jessadelacruz
Автор

Literally say, "Yes let's go baby!" when I search for a java concept and this guy's made a video on it

weaponkid
Автор

U are the best java teacher in the world

narasimhamurthy
Автор

This is great, really helpful to understand what is inner class. Thanks for sharing this

manueloaustria
Автор

Great example and straight explanation bro! Weird, but interesting. Now I'm wondering where to take advantage of it. 🤔

luisalberto
Автор

hey alex just completed your intermediate coarse ....thanks a lot, u are doing a wonderful job and good karma at appx. our age
keep up the work and stay blessed

blazingspirit
Автор

finally my biggest question regarding java clearing today, i even felt problem in Android with inner classes like when we create adapters, , their are lots of inner classes in it, , , Thanks mate love from Pakistan

arttech
Автор

Thanks Alex..you are making Java simple to learn from me..

lakshminarayanamaddi
Автор

Dude said “I know this looks comfusing”...after i wasted so many hours of my life trying to figure out my Java trainer’s stupid example with icecream trucks.🤦🏻‍♂️Man you make it so easy to understand...

marianandrei
Автор

If you haven’t already, can you make a video on Overriding methods during inheritance?

kamrantahir
Автор

Learning your videos have been fun kind of and truly engaging . Would you please organise the Java tutorials into a numbered playlist ? This will help us follow u sequentially! Thank u 🙏🏾

mohamedkanu
Автор

Imagine the project name, but outta context.

mannyokafor
Автор

Can you make a video about Optional Class?

yahelbraun
Автор

Good Explanation. Please add this to your next video ===> Types of Inner Class:- i) Normal Class or Regular Inner Class
ii) Method Local Inner Class iii) Anonymous Inner Class iv) Static Inner Class

krishnachaitanya
Автор

Can you give me an example when this class inside a class needed in a program.

donniecastillo
Автор

can u make a video about windowBuilder i cant install it on eclipse

vidsworthwatch
Автор

the link for your course isnt working for me, is it geolocked?

yaqoobqp
Автор

I know this is an old video but hopefully you still read comments I was just wondering I tried in my IDE and I was able to do
Outside o = new Outside();
Inside = o.new Inside();
Is it any different from doing it like you at 1:43?

jonathanc