Java Tutorial 12 Nested Classes

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

The inner class is already invoked on an instance of the outer class, so you don't need to create an object of the outer class to access it's members. So in your case, you don't need to create an object 'boogie = new Beginner()' to access 'boogie.x'.

IsaacBhasme
Автор

@saadthayab I will be teaching Collections after Packages. So in about 2 weeks.

lineware
Автор

Hello man when are you going to teach us about Collections.

saadthayab
Автор

very interesting information. great video. Is it possible to access an Outer class member from the Inner class without using a Outer class Object?

leddel
Автор

What's the background music playing in the very begining

suvamroy
Автор

Hey man, I have a test in Monday and I looked for a video describing very accurate about nested classes at 2:58 you show a local class, and as far as I understand it has access only to 'final' parameters as it creates a copy..is it right ?

OhadS