No video

Java Constructor Tutorial - How To Use A Constructor in Java #74

  Рет қаралды 607,663

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 507
@alexlorenlee
@alexlorenlee 10 ай бұрын
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@bates950
@bates950 10 ай бұрын
Awesome video, Alex. Thank you! Please what is the title of the background song in the beginning of the video?
@Randomlolstudios
@Randomlolstudios 4 жыл бұрын
I think I learned more about constructors in this tutorial than the last few weeks of my cs course in college, thank you for making it.
@Dennou85
@Dennou85 4 жыл бұрын
I have to agree, I felt exactly the same way.
@jeremydutton193
@jeremydutton193 4 жыл бұрын
Ditto
@kplwijkpl6273
@kplwijkpl6273 4 жыл бұрын
I agree , he just made a rhetorical explanation - My feeling is that he himself is struggling with this concept ~
@RitaTheCuteFox
@RitaTheCuteFox 2 жыл бұрын
I disagree, this is completely WRONG. EVERYTHING is fucking STATIC.... this has nothing to do with objects or constructors.. the constructor in this video is completely unneccesary. He didn't mention the "this" keyword and didn't even manage to encapsulate the class. Yeah you may think you understand this. Because it's completely wrong. If you use constructors and classes like this then enjoy your F in your college cs course.
@VivianHuangSnowy
@VivianHuangSnowy 4 жыл бұрын
Your way of teaching is so stress-relieving and easy to understand :') Thank you so much
@jonathanphillips5915
@jonathanphillips5915 4 жыл бұрын
Big facts 🔥
@thaminduKavinda
@thaminduKavinda 4 жыл бұрын
Yeah, that's true
@saswataroy1699
@saswataroy1699 4 жыл бұрын
Yeah when I see his tutorials it seems like a friend is teaching to me which helps me to understand the topics in better and easy way...
@iliasi.4004
@iliasi.4004 3 жыл бұрын
not when u put it on double-speed
@bardock7885
@bardock7885 3 жыл бұрын
Bruh did you even subscribe
@suyogb7325
@suyogb7325 4 жыл бұрын
4 java books and multiple online courses on java, yet whenever I have a java doubt I re-watch your video. Thank You.
@jordanbrown2173
@jordanbrown2173 2 жыл бұрын
Honestly might cry, I've been completely lost in this course over the past few weeks and finally am starting to understand it thanks to these videos. Thank you
@TheStewie96
@TheStewie96 3 жыл бұрын
If my prof would explain it like you do, my life would be way more easy and I wouldnt waste so much time. Im so glad Ive found your channel. Love you
@tressaortiz2078
@tressaortiz2078 3 жыл бұрын
I always read my notes, read the book, then I go on KZfaq and type in the subject + "Alex Lee". So thankful for the way you explain things that professors and books tend to miss the mark on
@AN-nk5yl
@AN-nk5yl 4 жыл бұрын
Univeristies are missing out by not having you as a professor.
@cosminionut5521
@cosminionut5521 4 жыл бұрын
Hello! I recently discovered you but it seems pretty straight forward and to the point the way you teach. Hope you won't stop doing tutorials because for small students who struggle to learn extra stuff beside school is really helpfull.
@StreakyFly
@StreakyFly 2 жыл бұрын
Great tutorial! In 15 minutes I learnt more than what I did in 150 minutes in university.
@AbhinavKumar-dr4ef
@AbhinavKumar-dr4ef 2 жыл бұрын
You teach from the basics and how to think like a beginner. Awesome. Thank you.
@yaturkeyneck7130
@yaturkeyneck7130 2 жыл бұрын
THANK YOU! This really answered a lot of questions for me.
@awhr0350
@awhr0350 3 жыл бұрын
your positive and encouraging way of explaining things is a relief from the monotonous and depressing type of education I receive at university. Thanks alot!
@awesomezebra
@awesomezebra Жыл бұрын
My instructor chose to use your videos for our class, and I see why, this was so easy to follow, thank you so much!!
@tobbykem8241
@tobbykem8241 2 жыл бұрын
I love the way you explain each concepts with the recap at the end. Your videos is more helpful in my study in Java programming.
@linuxworld3686
@linuxworld3686 4 жыл бұрын
Man, I can't image I am learning 2 hours lectures in 10 minutes. WOW keep the good work.
@nikkiervinmusic
@nikkiervinmusic 3 жыл бұрын
I've been a musician for 30+ years and I recently decided to make a switch to something different that will still give me an opportunity to be creative but make WAY MORE money! I enrolled in a local college to study Web Development & my Java professor talks to us as if we already know this stuff. So I enrolled in a code camp (Code Academy) to help me get caught up on all the stuff he thinks we already know.. lol.. I've been looking everywhere I can to get help. Java isn't too difficult, it's just a lot to take in all at once. Anyway, I said all of that to say that I really like your teaching style. It was easy to follow along with you. Thanks a lot!
@bharathabhi2951
@bharathabhi2951 2 ай бұрын
Constructor basically creates an object - That line took off all the confusion. Thanks Alex.
@Aleksei_Zukovski
@Aleksei_Zukovski 3 жыл бұрын
I have strated to learn Java and i have my first test on the 27th of octobre. I always watch your videos to really understand what i have to do. Thank you really much from the Netherlands!!
@davidmelbye949
@davidmelbye949 2 жыл бұрын
Literally better than my lessons in college. Bravo! Can't thank you enough!
@TheBaldr
@TheBaldr 2 жыл бұрын
Brilliant, this totally made more sense than 2 chapters and 2 lectures I've taken.
@jcferreras
@jcferreras 3 жыл бұрын
Every time that I don't understand any tutorial from the web, I always go to this channel and everything seems easy to understand now. Thank you!
@lukemalonis8533
@lukemalonis8533 3 жыл бұрын
You should be proud man, I watched about 30 different videos on this, and this video is what finally made me understand 😂.
@ilejovcevski79
@ilejovcevski79 4 жыл бұрын
P.S. For anyone still experimenting with constructors, once you make your own custom constructor that takes parameters, but you still want to use the default constructor for the same class for some reason, you MUST make the default (empty constructor) as well. Otherwise it will no longer be available, and you' ll always have to enter custom parameters when you create objects of that class.
@wesldf
@wesldf Жыл бұрын
Equal Alex made on the video, got it. Thanks for calling attention for this.
@ilejovcevski79
@ilejovcevski79 Жыл бұрын
@@wesldf my pleasure mate!
@samerbilal7676
@samerbilal7676 3 жыл бұрын
I love how you walk through an example of each concept and not just spit definitions at us. Appreciate you posting these videos, makes learning java and coding much easier and less stressful.
@YouSoRusso
@YouSoRusso 4 жыл бұрын
This was awesome dude. Thanks 👍 Semaphores, Concurrency, Multithreading would be some useful lessons but whatever you do I'll be a new student for some revision. Keep it up bro. Love the peaceful vibe.
@13guile
@13guile 4 жыл бұрын
3:10 you can just type "sout" then press tab. You're welcome guys
@13guile
@13guile 4 жыл бұрын
that hotkey is for NetBeans IDE, im sorry
@M.RR.M.888
@M.RR.M.888 4 жыл бұрын
Thank you!! it worked with my NetBeans IDE.
@bubboydarker9030
@bubboydarker9030 4 жыл бұрын
in eclipse: type "sout" then press ctrl + space
@Srk_Cambodia
@Srk_Cambodia 3 жыл бұрын
eclipse : you can try "sysout" then press (ctrl+space).
@emanuelalecsa8407
@emanuelalecsa8407 4 жыл бұрын
thanks, man! The way you explain is so smooth and down to Earth! Keep it up!
@alexlorenlee
@alexlorenlee 4 жыл бұрын
Thank you :) I will!
@generalzt2886
@generalzt2886 4 жыл бұрын
I love how you explained this I have a final tomorrow and this was really helpful. The best part is how I also use eclipse to write code so all these tips are super nice.
@Murga_Mutton
@Murga_Mutton 4 жыл бұрын
More than the teaching, your videos are calm and ASMR like. It soothes my nerves when I watch the video.
@khakramsidiqi9731
@khakramsidiqi9731 4 жыл бұрын
I love the way you teach java concepts and mix them with practical coding, it is more fun! keep up great work, bro!
@qqmayakashi
@qqmayakashi 2 жыл бұрын
I moved college school because of pandemic. The previous college i went was using Python and the school I'm moving to is using java. This helps me a lot to transition since I'm taking data structures now, thanks!
@imunoriginal382
@imunoriginal382 4 жыл бұрын
People really need to know about you. You explained it well in the simplest way using real life objects. I'm also in need of learning implementation of linkedlist using classes, so if possible I'm eager to learn it more from you because my professor is using words we've never heard of :D
@hundimbuero
@hundimbuero 4 жыл бұрын
You're saving my CS first year course which I dropped, I wish I found you earlier.
@susanajimenez4599
@susanajimenez4599 Жыл бұрын
I discovered Alex, a few weeks ago. Oh boy, you do know how to explain! Loved the content, definitely not the regular teacher 😀 Thanks, thanks!
@Unlucky13ification
@Unlucky13ification 3 жыл бұрын
I like how you explained the concepts without using all the Java terms that I heard in other tutorials. Like how you said that a constructor creates objects. Or that a constructor is a method. That stuff is easy for me to comprehend.
@kevinsuriel8935
@kevinsuriel8935 4 жыл бұрын
So far best video for people on the internet. Could of saved me a lot of time back in college, just here to refresh my memory.
@oyskateboard5355
@oyskateboard5355 3 жыл бұрын
Omg bro, I love you and your amazing analogy and voice. I love how you explain and explore everything simplistically. You just saved me from a semester of failure!
@macadonards1100
@macadonards1100 3 жыл бұрын
this guy is easily becoming my favorite KZfaqr
@giornogiovanna2272
@giornogiovanna2272 3 жыл бұрын
My teacher keeps rambling about the topic that I end up losing interest and end up getting confused. I watch you teaching for 12 minutes and I understand
@potatoostudies2881
@potatoostudies2881 Жыл бұрын
This Java Tutorial is easy to understand than other tutorials in yt haha. Thank you so much!
@brenodelgado1529
@brenodelgado1529 2 жыл бұрын
I really feel like (who the fuck disliked this video?). Man, I'm from Brazil, and I've got something to tell u. I've never seen someone like you, teaching Java with so many facility. Everything u say I can get and do by myself in my studies. Thanks a lot for sharing this with us, besides u stopped doing it.
@thomasmayaya8841
@thomasmayaya8841 Жыл бұрын
Most heroes where capes all you do is stand behind a camera and make life easier ❤️you're a hero
@mantub1901
@mantub1901 3 жыл бұрын
Your simplicity in teaching, amazing man!! Concept grips with the examples make more interesting and understand in-depth, and a person learning won't forget!
@email677
@email677 3 жыл бұрын
I like how he explains. I had never understood the Java „constructor“ topic until I‘ve seen Alexs video tutorial.
@MRHashesha
@MRHashesha 4 жыл бұрын
I was struggling with understanding Constructors until I watched this video :) , Thanks a lot for your explanation :)
@Blarnix
@Blarnix Жыл бұрын
I can't tell you how amazing you are for this. You're probably the only reason I might pass this class.
@jakobdonathellmann7192
@jakobdonathellmann7192 3 жыл бұрын
Thank you! Learning Java through you now every day :)
@monsolcole5980
@monsolcole5980 Жыл бұрын
You actually just saved my grade, love the way you teach!
@theedxqboi
@theedxqboi 2 жыл бұрын
Thank you for your videos. I'm still learning Java, and these videos have been much food for thought!
@tomino133
@tomino133 4 жыл бұрын
I'm switching teams at work from Web (React + Node) to Cloud (Java) and your channel has been helping me a ton so...thanks man!
@leonardpcs08
@leonardpcs08 4 жыл бұрын
Your videos are great. I'm re-learning Java now and these videos make it possible. I joined Code with Mosh's Java course -- and when I need another explanation to his topics , I turn to your videos and they compliment really well, and I suggest everyone to do the same. Thank you, Alex!
@carolinaheredia7926
@carolinaheredia7926 Жыл бұрын
I've been stuck on this for the past week in class! thank you so much!
@JazminMortimer
@JazminMortimer 3 жыл бұрын
So grateful that you exist. My university textbook is terrible T_T
@ReminationYT
@ReminationYT 3 жыл бұрын
You’re lucky you get a text book. We learn solely from lectures...
@fareenaaliya3189
@fareenaaliya3189 2 жыл бұрын
Finally, constructor is making sense. Thanks Alex.
@alexkim-soo2845
@alexkim-soo2845 2 жыл бұрын
to hire you as a lecturer in any institute is an absolute win
@kenaida22
@kenaida22 3 жыл бұрын
The way you explanation this really improved my way of viewing the constructor object.
@xx_sanch_xx
@xx_sanch_xx 3 жыл бұрын
I just want to say thank you for making easy to follow content I learned more from watching your videos than I have all semester from a paid instructor!
@shern7865
@shern7865 2 жыл бұрын
My lecturer took 4hours to explain this but you made me understand this completely in 12mins..
@markirok1836
@markirok1836 2 жыл бұрын
thank you this helped with my exam in java for 1 semester of computer science
@Josip9888
@Josip9888 4 жыл бұрын
Thank you Alex for all this tutorials you share. They are very helpfull and intertaining.
@emmanuelasirifi352
@emmanuelasirifi352 2 жыл бұрын
Thank you Sir- you are awesome. I have been fighting to understand this for almost a month
@marvhartigan3677
@marvhartigan3677 3 жыл бұрын
Thanks a lot buddy!Sometimes you guys don't even know how helpful you have been to others.
@abdeselamselami4532
@abdeselamselami4532 4 жыл бұрын
Thanks a lot Alex, for everyone the short-cut of System.out.println() is type sysout + hit buttons ctrl+space.
@kyte2000
@kyte2000 4 жыл бұрын
sout Tab is much easier for System.out.println().
@francom1683
@francom1683 4 жыл бұрын
I'm from Argentina, and I got every word you said. Great teaching. My best regards for you
@jettsenweber6944
@jettsenweber6944 2 жыл бұрын
thank you for breaking it down as simple as possible...subscribed
@CosmonautCoding
@CosmonautCoding 3 жыл бұрын
I spent 3 hours reading Java notes and got nowhere. Watched this video twice and suddenly it all makes sense. Thank you!
@DONTKNOW602
@DONTKNOW602 2 жыл бұрын
Thank you for this .this helps so much simplifying words used in my texts, especially since its 100 online classes.
@saistharanjan9217
@saistharanjan9217 3 жыл бұрын
I literally have an exam in 45 minutes. Thanks a lot for this video!
@tanyabose8085
@tanyabose8085 4 жыл бұрын
the way u explain is like explaining very twisted and complicated things into such simple things. it would be really great if u make the same kind of videos on C and C++ tutorials too.
@theophilus33
@theophilus33 4 жыл бұрын
Incredibly helpful, college professor's explanation made no sense but this was very clear and easy to follow. Thank you!
@kadenmoss8904
@kadenmoss8904 2 жыл бұрын
The “sysout” shortcut may have just saved my life. Thank you sir.
@owenchan1799
@owenchan1799 3 жыл бұрын
omg thank you i understood that so much better than the hour long class about objects/constructors at school
@TheChaosRainbow
@TheChaosRainbow 4 жыл бұрын
This has been the simplest and most thorough lesson I have ever come across. Thank you for sharing and being amazing :')
@anujmarsha1239
@anujmarsha1239 3 жыл бұрын
Finally I understand what a constructor is? Thank you for making this video.
@elijahscheinz2740
@elijahscheinz2740 4 жыл бұрын
Thank you! I'm failing computer science because I have no idea what to do because I can't talk to my teacher because of Corona Virus but your videos have really helped me. Appreciate it bro.
@ramshaakhurshid6174
@ramshaakhurshid6174 4 жыл бұрын
Your teaching technique relive our all problem 👍Keep it up
@peterrock5560
@peterrock5560 3 жыл бұрын
i'm new to java and tbh you help me soooo much with your videos! Thank you man , hope you're good and everything is going great!
@alexisforbes3322
@alexisforbes3322 3 жыл бұрын
Eye-opening!!!!! Thank you so much!!! Your explanation on constructors, passing parameters and giving it a reason behind it just makes your way of teaching, best!
@nithin1061
@nithin1061 4 жыл бұрын
Alex , your way of teaching is simply awesome and easy to understand. Love from india..
@xx_leo1
@xx_leo1 4 жыл бұрын
ALEX YOU'RE LITERALLY A LIFE SAVER
@justcharles3062
@justcharles3062 2 жыл бұрын
Didn't really understood my professor in college. Thank you so much
@omniman8912
@omniman8912 Жыл бұрын
I'v just foud you ytb channel and saw most of your videos.Thank you for all that.Your teching technique is just an amazing.
@minakshigulia8997
@minakshigulia8997 Жыл бұрын
I love to study from you....your way of teaching is really osm..........respect from INDIA
@doaaahmed9730
@doaaahmed9730 2 жыл бұрын
you made java a piece of cake ... thank you so much
@circuit10
@circuit10 4 жыл бұрын
This is great. I'm not really new to programming but I'm new to OOP, and I'm trying to contribute to an open-source Minecraft-related thing. Before I was thinking "Why would you need a class thingy for a block? Just have a numeric ID" but now after watching some of these and some other OOP videos I'm thinking "Oh, becuase you don't have to the ID and position around all of the functions and you can have methods to do things with it etc."
@aidanakamchieva4648
@aidanakamchieva4648 4 ай бұрын
This video is too good for this world🥺
@alexmajano1993
@alexmajano1993 2 жыл бұрын
Thanks buddy! Love the way you explain everything so smoothly that it's easy to understand even for a non-native English speaker like myself. Thank you again. 😊 🙇
@tojifps3591
@tojifps3591 2 жыл бұрын
bro I tried to understand this by watching the lecture few times but watching this made me understand the logic within 6 mins
@shubhamb2547
@shubhamb2547 4 жыл бұрын
Such a mild and relaxed way of explanation you got there, your videos are always a great help whenever i have a doubt. Thank you sooo much Alex!!
@alvaro1379
@alvaro1379 Жыл бұрын
man you covered everything i cant thank u enough
@aligmayu5322
@aligmayu5322 4 жыл бұрын
YOUR NAILING IT MEN PLEASE CONTINUE WAT UR DOING
@dav_queue
@dav_queue 4 жыл бұрын
Shout out to your channel and videos. You do a good job simplifying the explanation of all these Java concepts. Definitely a big help. Keep up the good work man!
@adrianlowery7175
@adrianlowery7175 2 жыл бұрын
THANK YOU!! I was so confused because I didn't know the default constructor was invisible.
@arsharajendran3931
@arsharajendran3931 2 жыл бұрын
Why aren't you doing it anymore? I really love learning programming but is often stuck or too slow that it becomes too frustrating to continue only because I lack proper guidance. But I am trying again and I'm so grateful that I got to know about your videos. It is so helpful. Thank you so much.
@OnPoint760
@OnPoint760 3 жыл бұрын
thanks a bunch. i now clearly know what a constructor is, thanks to you
@Emqster
@Emqster Жыл бұрын
You are single-handedly saving my grade in my Java class haha
@jasonking1284
@jasonking1284 Жыл бұрын
Now this is a good tutorial. Large text and black on white color. Great....
@muhammadfaheem4024
@muhammadfaheem4024 4 жыл бұрын
Dude!!!! You are great..... I am from Pakistan and i simply love your way of teaching.
@Chichi-jy6zm
@Chichi-jy6zm 4 жыл бұрын
Well eventhough Im not good at english and obviously didnt understand all of this video but it was really helpful since i couldnt understand about constructor for like 3 months! Thank you for this video and tip LOL :) didnt know the tip either
Static in Java Tutorial #75
6:16
Alex Lee
Рет қаралды 257 М.
Object-Oriented Programming Java Tutorial (Java OOP) #71
14:07
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 22 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 24 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 59 МЛН
Java constructors 👷
10:37
Bro Code
Рет қаралды 175 М.
Java Constructors - Full Tutorial
7:38
Coding with John
Рет қаралды 356 М.
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 495 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,7 МЛН
Super Keyword in Java Full Tutorial - How to Use "super"
11:33
Coding with John
Рет қаралды 202 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 539 М.
Java encapsulation 💊
8:27
Bro Code
Рет қаралды 109 М.