Комментарии:
Sound’s Weird but What is the use of inner class I never used it before ??
ОтветитьThis guy about to save my semeseter
ОтветитьQ. What sort of problems are most easily solved using inner classes or method level classes?
ОтветитьI learn something new with you every time I revisit familiar subjects. You are great!
ОтветитьHello John!!! I am truly grateful the great work your doing.. Please help me with concerning serialization, deserialization and externalisation. Thank you
ОтветитьOff topic, but there appears to be something wrong with the subtitles/CC for this video, and I wanted to point it out! There's only an auto-generated Vietnamese option, and when translating the Vietnamese subtitles to English, it's completed unrelated to the video/what's actually being said. No idea what happened there, but I wanted to say something because it doesn't appear anybody else has!!
Ответитьthank u very much !
ОтветитьThe best tutorial. I'm so glad to stumble upon this video. Concise. discusses the key important points of inner classes and examples. Very easy to understand how you speak. Well done.
ОтветитьAppreciate this explanation about static inner classes, for some reason I keep forgetting what makes it static. Great vid!
ОтветитьWouldn't the best use case for inner classes be to make them private and instantiated only by the class within which they reside? Kind of like a local utility class for the class.
Ответитьexactly 2 years later I'm watching this, watched last year for the first time actually :)
ОтветитьI love you John
Ответить>Has never seen this being used
>Still makes a video about it
Big hustler energy!
Unfortunately watched it in 1.25 and all i understood is Outerclass, innerclass, so innerclass outerclass interclass. LOL JK. I understood it perfectly bro thank you! 🖤
ОтветитьThat's the weirdest thing i tried today 😂😂😂
Ответитьcan anybody tell me whats the theme he is using for eclipse and how to download it!
ОтветитьIs it even good practice to instantiate an inner class outside the outer class? I thought the whole purpose of the Inner class was for it to be used inside the Outer class.
ОтветитьGreat lesson, John! Thanks!
Ответить😍😍😍😍😍😍😍
ОтветитьNested classes are very useful to avoid namespace pollution. Being able to define a static class called "Loader" is a lot less confusing than having a separate class for each thing that needs to be loaded. Instead of your IDE trying to suggest a bunch of loaders all the time.
ОтветитьAm I just too drunk or is there a weird echo in the sound?
ОтветитьGreat video but didn’t answer some stuff I was looking for, I ended up searching for “Java inner class” after seeing it used in the AWS SDK thinking how is “this” context shared because I couldn’t see where it was being set but could see it being used. So if you’re here for the same reason, after another search I can confirm to access OutterClass’s “this” from a method in InnerClass you’d write “OutterClass.this” same would apply for LocalInnerClass. Also the inner class cannot be static for this to work. A good time you might use this is when creating result objects that need reference to an underlying backend declared in the outter class
ОтветитьI think the vast majority of your explanations are very good indeed, but not in this case. What needs to be explained first here is not how you create these inner classes, nor what different kinds there are, but what the point of them is. If you need to do something, why not just write another method? Why create an inner class, then write the method you need inside that? Please, explain the "why" first.
ОтветитьNice tutorial
ОтветитьThank you
ОтветитьI've written a lot of different inner classes, but I still learned some things from the video. Kudos to you John!
Ответитьthis kind of code is not good. i saw a lot of code in my current company. it not very maintainable .
ОтветитьThank You very much john, ur teaching style is soooooo awesome I got the info which I was searching for . Hatss offff....
👍👍🙏
¡Gracias!
ОтветитьJohn, although it seems you are using eclipse (as I do) for your IDE; I bserved that you did not wrote System.out.println when code, instead it seems you type a shorcut (as sysout) and the IDE expand it to the correct syntaxt System.out.println command. Is that correct ? What pluggin or utility are you using for that ? It would be great if you do a video with those kind of tricks to get the most of your IDE!
ОтветитьThks for your videos, John, they are very useful. One thing I did not understand about inner classes.. Can you please clarify if when we are using System.out.println we are using a inner class and how is this defined ? It always confused me the way we did the print out on java, instead calling a simple method of a system class, it seems we are using a kind on inner class. Is that correct?
ОтветитьInteresting, but could have a bit more depth, like the proper use of inner data classes in a service class, or whatever.
Ответитьif john didn't exist i would be so lost
Ответитьshort and straight to the point, I alwyz run away from nested classes. I find them clamssy & difficulty, lol, but from the video, am hooked and eager to use them. Not that difficult... lol
ОтветитьDude, you’re amazing at explaining Java. Thank you so much for these vids!
ОтветитьHi John!
Love you videos!
Would you maybe consider making a few videos about Spring? :)
Kind regards!
Can you help me with name of color theme which you use in video
ОтветитьSo innerclass are just normal classes in different locations, which you can access with Outername.Innername or inside the method when you create an object there. Got it. Thank you, this really blew my mind.
ОтветитьInner classes make sense, when you want a class A to implement the iterator interface. To effectively do so, you'd need an iterator object. The way that item iterates over objects from class A totally depends on what class A is. You'd probably need to implement the iterator differently for another class B. Here, encapsulation provides a use case for inner classes.
ОтветитьPlease do some on streams
ОтветитьThe video was great, thank you :-) May God bless you. 1) I know that if you compile the outside class it will be ==> OuterClass.class and OuterClass$InnerClass.class 2) When you want to run it from the command line, do you have to put it in a jar file first? What does this jar file have to look like "inside" so that the entry point is set up correctly? 3) Lastly...how do you run this from the command line and JShell with these scenarios: a)with arguments, without arguments, and b)if using Eclipse...with arguments(Run Configurations set up), without arguments(Run Configurations turned off/cleared out). I've been having trouble with turning "off" Run Configurations lately. After some research I had some trouble understanding this in stackoverflow, sorry. Thanks for reading.
ОтветитьAhh my daily bread 🍞
ОтветитьYou are born to teach. Can you please cover design patterns specially SOLID if possible?
ОтветитьI like how simple you make things and explain them , very useful video 👍👍
ОтветитьPoland Computer Science student says thank you !!
The way you teach is absolutely awesome!
CS student here, we recently learned about linked lists and I'm assuming one of the best ways to implement a node class for a linked list is to use inner classes right? since we only use the node class inside the linked list.
ОтветитьThat was just GREAT!
You didn`t waste my time!