Java OOP in 10 Minutes (Java Object Oriented Programming) #95

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 410

  • @alexlorenlee
    @alexlorenlee  Рік тому +17

    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

    • @Lord_Liverpool
      @Lord_Liverpool Рік тому +1

      The music at the beginning of the video was very distracting.

  • @1cannon3
    @1cannon3 5 років тому +756

    1:35 Polymorphism
    2:20 Overloading a method
    2:26 Overriding a method
    3:52 Inheritance
    4:37 Encapsulation (getters/setters)
    6:54 Interfaces
    8:40 Abstraction
    Thanks for the excellent tutorial!

    • @adrianberdecia4489
      @adrianberdecia4489 5 років тому +5

      thx!

    • @MR-yc3my
      @MR-yc3my 5 років тому +2

      2:26 Overriding, not overwriting.

    • @shazaibmaqsood2957
      @shazaibmaqsood2957 4 роки тому +5

      For those who are confused , methods are called functions in c++

    • @InfoLunix
      @InfoLunix 2 роки тому +2

      0:21 Start
      0:38 Classes and methods

  • @thaminduKavinda
    @thaminduKavinda 4 роки тому +440

    Entire semester in 10min, very impressive bro

    • @rayajaltouny7848
      @rayajaltouny7848 3 роки тому +1

      Exactly 💯. I really needed this

    • @TimoKvapil
      @TimoKvapil 2 роки тому +2

      we had this and more in just one lecture

    • @harveers820
      @harveers820 Рік тому

      @@TimoKvapili feel bad for you

  • @day35ofdebuggingthesamelin56
    @day35ofdebuggingthesamelin56 4 роки тому +633

    This guy teached me Java OOP in 10 min while my professor took 4 months just to confuse me.

    • @relic374
      @relic374 3 роки тому +13

      It's funny how teachers in general treat you like you are stupid and take forever to explain things that are really simple. Like, "HoW dO YoU KnOw iT Is A TrIaNgLe" or some shit when it's like, we both know why so like wtf.

    • @branpod
      @branpod 2 роки тому +3

      @@relic374 understand why you know it’s a triangle is important though. Obviously you can recognize a triangle in a simple geometric situations, but in more complex situations where things don’t present themselves to you, you need to know what to look for.

    • @relic374
      @relic374 2 роки тому

      @@branpod I know, but I've seen questions like that in middle school when it's not anything new- it's just straight up stand alone shapes

    • @branpod
      @branpod 2 роки тому

      @@relic374 Yeah, there's definitely times where that style of teaching is unreasonable, but as an introduction to a topic, it's often worth the little bit of extra time to get a complete understanding of why, and not just how

    • @relic374
      @relic374 2 роки тому

      ​@@branpod Yes, but I have experience times when it was just in the middle of no where- very simple things that everyone understands if you're above the age of 12.

  • @thedistractedlearner
    @thedistractedlearner 4 роки тому +102

    I'm a HS Computer Science teacher. I bow to you and recommend you to ALL my students. I'm coming to you to learn and help me clarify what I'm teaching! :)

  • @africanbitcoin7787
    @africanbitcoin7787 5 років тому +393

    “They throw 15 letter words at you you don’t understand”
    2 seconds later: POLYMORPHISM
    Just kidding.. love the videos

    • @alexlorenlee
      @alexlorenlee  5 років тому +60

      POLYMORPHISM

    • @silasdietrich7464
      @silasdietrich7464 4 роки тому +16

      15 letter words, he didn't say anything about 12 letter words... :)

    • @sleep3017
      @sleep3017 4 роки тому +1

      @African Bitcoin ?

    • @frischrank
      @frischrank 4 роки тому +5

      @@alexlorenlee Stop it, Patrick, you're scaring him!

    • @artalmarulamajr.1340
      @artalmarulamajr.1340 3 роки тому

      i thought polymorphism basically many inheritance

  • @_Anna_Nass_
    @_Anna_Nass_ 2 роки тому +2

    These “in 10 min” and “in 14 min” videos are great reviews for someone who knows some Java but took a semester off. Thanks for keeping it simple, dude.

  • @karanpolobotu5593
    @karanpolobotu5593 4 роки тому +8

    This is the greatest Java OOP tutorial of all time. You've managed to break things down in such an understandable way!!! My prof has a Ph.D from MIT, and he can't teach me this stuff!! Ur WAYYY better than him at this. Thank you so much!!

  • @michaelcdarby
    @michaelcdarby 4 роки тому +14

    It’s been a year since I’ve had to take a programming course so this was a great refresher

  • @umeshb8210
    @umeshb8210 4 роки тому +99

    He actually taught OOP in 10mins. OMG MOTHER OF CHRIST

  • @djuka8121
    @djuka8121 4 роки тому +15

    damn this 10 minute video is more useful than those 2 hour tutorials

  • @adhel-estebanriverarodrigu2234
    @adhel-estebanriverarodrigu2234 2 роки тому +5

    Bravo and kudos to you, sir Alex! I'm just starting my new semester and had to refresh OOP and learn Java at the same time, and you taught all of this under 10 minutes! I'm sharing this with my entire class. Bravo Alex! 👏

  • @CrypticManu
    @CrypticManu 5 років тому +63

    HAHAHA WHAT A TIMING DUDE
    we literally just had a lecture about OOP and I wanted to watch some of your vids to make sure I understood everything :D

  • @tfh5575
    @tfh5575 5 років тому +4

    wow, this is a great overview. i have two interviews this week for software engineer positions (finishing bootcamp in 13 days) and i really felt overwhelmed reviewing so much material. this was super concise and helped clear up a couple concepts i was still having a little trouble talking about. thank you!

  • @matthew11092
    @matthew11092 4 роки тому +213

    this man deserves my college tuition

    • @simiiv5021
      @simiiv5021 4 роки тому +3

      hahaha true, mine too

    • @danielvazquezsandoval75
      @danielvazquezsandoval75 4 роки тому +5

      Got the worst two teachers, one for networks one for Java. Same here, it took Alex 10 minutes to teach me what I never understood in 4 months.

    • @dhanajon5528
      @dhanajon5528 2 роки тому

      @@danielvazquezsandoval75 haha same, i have a networking teacher who is just the worst

  • @michaellieberman114
    @michaellieberman114 5 років тому +2

    This was very concise and well explained. I learned OOP and did a lot of projects/homeworks earlier this year in a class and I always tell people "any concept, specifically in CS, is simplifiable", but school doesn't do an amazing job at concise. I had a wonderful professor for OOP but in general teachers make things more complex and drag on lessons.
    2 things that would have perfected this video:
    1 if you had prepared a full class with variables and functions, like a full 40 line class with edge case checking for constructors and setters.
    2 split the screen between "class containing main method where objects r created" and "actual class/blueprint of object"
    that way people can visualize things much better.
    for a quick intro to OOP, this was very good. even for a review for test.

  • @jasonking1284
    @jasonking1284 Рік тому +1

    Nice, a compact tutorial with no going off on a tangent for 10 minutes every 5 minutes but just stays focussed on the subject. Very good video. 👍👍👍

  • @angledcoathanger
    @angledcoathanger 4 роки тому +5

    Wish I had such a tidy and quick explanation on hand when I was first learning Java. Great stuff.

  • @willianvinagre3338
    @willianvinagre3338 4 роки тому +12

    holy shit dude...
    i always struggled trying to figure out OOP concepts
    but these explanations are really good! it all seems a lot easier now! thanks!

    • @piggiesgosqueal8066
      @piggiesgosqueal8066 4 роки тому +3

      Willian Vinagre same. I am coming from C++ and Java OOP was making no sense. Now I realize it is very similar just a bit different syntax.

  • @syeddaniyal1273
    @syeddaniyal1273 5 років тому +10

    What a great tutorial man, this will help me in my OOP course more than my class lectures!

  • @crosskrade6658
    @crosskrade6658 4 роки тому +1

    Thank you I am currently studying Computer Science at University and I have learned so much from this channel what my lecturers cannot seem to explain, keep it up.

  • @ArnoldPerez
    @ArnoldPerez 3 роки тому +18

    "Universities hate him for teaching one semester in 10 minutes." lol thank you so much for this!

  • @shubhamarya9383
    @shubhamarya9383 5 років тому +244

    And I oop...
    Sorry I'll see myself out

    • @caglayagmurr
      @caglayagmurr 4 роки тому

      XD

    • @arthurgrubert3941
      @arthurgrubert3941 4 роки тому +2

      My college course last semester was called “IOOP” into to object oriented programming

    • @tylerngo7639
      @tylerngo7639 4 роки тому +3

      apcs test in 40 minutes
      good luck everyone

    • @ritamch7518
      @ritamch7518 4 роки тому +2

      Yeah dude I did that too lol

  • @SoruNoSensei
    @SoruNoSensei 4 роки тому +32

    Hey Alex, this video was very well explained. I feel like I learned a lot in a very short amount of time. Keep up the great work. I'm a new subscriber based off of this video alone.

  • @prashanttiwari7008
    @prashanttiwari7008 5 років тому +1

    Crystal clear and easy example . Precisely on point , nothing extra .

  • @Videosvoorwebsites
    @Videosvoorwebsites 3 роки тому +1

    I've been studying from my books for the past few days, everything was made so unclear. You just cleared everything up in 10 minutes, awesome video thanks!

  • @rittenbrake1613
    @rittenbrake1613 4 роки тому +4

    This is SUPER CLEAR ! This made everything much easy to grab !

  • @titivermeesch
    @titivermeesch 4 роки тому

    I've already a few years of experience with Java but this is actually the best explanation of OOP that I ever found online.

  • @nakadelnat3030
    @nakadelnat3030 5 років тому +9

    you just made my life easier. God! I should be thanking youtube for this video suggestion!
    I am a teacher and want to teach my students java. I will add your videos on our book as reference ;)

  • @PlGGS
    @PlGGS 5 років тому +1

    Great video! Just want to add that getter and setter methods make getting and setting variables easier for users, because the original developer(you) is(are) able to retrieve and replace the variable in different ways depending on what the user submits as a parameter to each method.
    Mainly, if the original dev(you) wants(want) to make sure users don't accidentally set a variable to certain values down the line, getters and setter methods can perform checks and do much more than simply *get* and *set* the variable in question when the user calls them

  • @simiiv5021
    @simiiv5021 4 роки тому +1

    Thanks for existing ALEX. you saved me! I was never so confident in OOP and kinda mugged it up. You've made coding fun for me!

  • @leahlilyrose
    @leahlilyrose 3 роки тому

    you are LITERALLY THE BEST Java teacher ever, I finally understood Arrays, now I need to know about Objects, Constructors, and Inheritance I think

  • @ronayusan4047
    @ronayusan4047 3 роки тому +2

    so annoying how these concepts are made to be so confusing in school / job interviews but they're so basic when you're actually coding them.. thanks for showing us this!

  • @Cablur
    @Cablur 2 роки тому +5

    Mate, you are so incredibly awesome 🤩
    I know, I repeat my self in like every comment I leave under your videos, but this is only due I can not find any better words to describe how infinitely good you are explaining stuff!
    Thank you so so much for your videos ❤️‍🔥

  • @pufflesrock09
    @pufflesrock09 5 років тому +2

    Our Java class went from basic loops straight into OOP without even mentioning what a method is, I guess it's lucky I have some experience with it already. Great video!

    • @omarzidan4055
      @omarzidan4055 3 роки тому

      my class is doing that rn and I got no clue wtf is happening

  • @l.6516
    @l.6516 3 роки тому +1

    I spent 16 hours on a basic object oriented java project, wish I had seen this.

  • @eveliovelez9708
    @eveliovelez9708 3 роки тому

    I’m an AP CSA student in high school and your videos are beyond helpful for preparing for my upcoming AP exam. Thank you so much!

  • @id15807936
    @id15807936 5 років тому +1

    I wish every programming tutorial video was that simple and quick.

  • @alexdien
    @alexdien 3 роки тому

    Helped me understand Java for my new job in 10 minutes. Many thanks!

  • @shadmankabir7023
    @shadmankabir7023 4 роки тому

    your teaching style is so good. the basics even my professors couldnt really teach well in university. you taught in 10mins.

  • @karlisteeves3216
    @karlisteeves3216 5 років тому

    I'm in a coding Bootcamp right now and I just wanted to say, thank you for these videos because they're the only thing making me understand java.

  • @mattnemeth1333
    @mattnemeth1333 4 роки тому

    If I spend too much time away from an OOP language I forget what these words mean. Excellent refresher.

  • @Nariji197
    @Nariji197 4 роки тому

    This video literally saved me from my interview. You see im more of an output guy and I have problems with definitions when interviewers asked me about definitions of something, having trouble on finding the right terms to describe it that sometime I want to "just give me a computer and ill show it to you". Thanks!

  • @serotonin5607
    @serotonin5607 4 роки тому

    Man... this explains my whole semester... and this video helped me more than my school. Thanks man you earned a new subscriber.

  • @niwnoom
    @niwnoom 2 місяці тому

    i found this video about 3 months ago and said to myself i would come back here once im done with my coursebook and so here i am and thank you sir, have a good life

  • @Yadayayayayay
    @Yadayayayayay 4 роки тому

    bruhh I just learnt something we've been doing in class for the past 8 months in TEN MINUTES. YOU ARE A MAGICIAN.

  • @manjunathadharagond9322
    @manjunathadharagond9322 11 місяців тому +1

    Wowowowowowowwww!!!! You're the god of OOPs tutorials🎉

  • @og403
    @og403 4 роки тому

    Its amazing that while im sick and not really even able to focus you still made me understand better than my professor or my 250 book

  • @pengwuchen3095
    @pengwuchen3095 5 років тому

    This is a very good guidance for intermediate learner, but not absolute beginner. My java professor only talks about how to use different kind of method to achieve a goal, but never tell me the concept of a class, a method, or how to relate them as a whole.

  • @nassimioussaghane1686
    @nassimioussaghane1686 4 роки тому

    Wow that's impressive ! Our mentor spent 2 weeks explaining Oop and didn't get it . watched ur vedeo and now makes sense .

  • @euland
    @euland 5 років тому +3

    ok, i love a youtube channel, dude, continue with this great work.

  • @nikolette4337
    @nikolette4337 Рік тому

    Just WOW! I've been front end coding for years. Found a new passion in OOP. You helped me a lot with this video. Got a new sub 🎉

  • @brunocardoso8277
    @brunocardoso8277 5 років тому +12

    I actually "know" about OOP but i really enjoyed this video. Good job man!

    • @mattiakozianowski8075
      @mattiakozianowski8075 5 років тому

      Da quanto ho visto.. il video è già per dev.. un newbie non capirebbe nemmeno i primi 10 secondi XD

    • @rocas4087
      @rocas4087 4 роки тому

      olha um programador da tuga 😆

    • @brunocardoso8277
      @brunocardoso8277 4 роки тому

      @@rocas4087 kkkkkk não sei o que é tuga, mas vou curtir a piada!!

    • @brunocardoso8277
      @brunocardoso8277 4 роки тому

      se for Portugal, infelizmente sou Brasileiro, ou felizmente, depende do ponto de vista xD

    • @rocas4087
      @rocas4087 4 роки тому +1

      @@brunocardoso8277 tuga é uma expressão para dizer português hahah, e da tuga é para dizer Portugal haha

  • @valterkuhne2962
    @valterkuhne2962 5 років тому +2

    Love it! I literally just learned C++ and with your videos only I understand everything they should teach at school!

  • @bitten1406
    @bitten1406 3 роки тому +1

    I really cannot be more thankful! You made everything so clear, thanks!

  • @9chickenwingz
    @9chickenwingz 2 роки тому +2

    Alex, you’re the teacher we always needed! 👏🏽

  • @programinggrid967
    @programinggrid967 4 роки тому +1

    Seriously man you are amazing i never understand oop before. But after watching this video i understand all the basic concept of oop. Thankyou

  • @burhanuddinkutubdeen7504
    @burhanuddinkutubdeen7504 4 роки тому

    hey alex my uni suggested 18 videos for each topic you explained in this video,and i am glad i chose to watch your video first before getting confused watching other videos.thank you.

  • @tips1483
    @tips1483 4 роки тому

    I’m coming from python and when I learned OOP python got so much easier so I decided to learn this as one of the first things and this is from a beginner this clears up so much and made a ton of sense thank you!

  • @Lunamuse35
    @Lunamuse35 18 днів тому

    This video has made it easier to understand basic OOP concepts

  • @creative.money_eu
    @creative.money_eu 4 роки тому +7

    Damn if i had only seen this before this semester started.... i would've saved myself a lot of stress

  • @timothybaraka1206
    @timothybaraka1206 4 роки тому

    This has literally wrapped up all those stories i get from my OOP lecturer, Thanks Alex Lee!

  • @lana7352
    @lana7352 4 роки тому

    Thanks God (extends Alex) that I found this channel. I have been watching these videos for the past few weeks, and they are one of a very few ways for me to understand the JAVA concepts taught by our online tutor. Many thanks and keep going!!

  • @darkvader2024
    @darkvader2024 Рік тому

    Watching this to revise before I tutor. I wish I had watched this back when I was doing this course. Would have saved me so much time.

  • @saxkMr
    @saxkMr 3 роки тому

    Thank you so much man! I always struggled to get this OOP stuff. But then your video comes and now OOP it's all magically clear to me. Keep up the awesome work!!

  • @ians474
    @ians474 4 роки тому +1

    This is fantastic! Clear and concise! Thanks bru!

  • @randomC25
    @randomC25 4 роки тому +2

    I took OOP for 1 whole semester, but alex be like : 10:05 mins ... It's really good. It's better and clear, thank you for making this videos.

  • @danielgilder8672
    @danielgilder8672 4 роки тому +1

    this guys an actual genius

  • @RiceNoodle
    @RiceNoodle 4 роки тому

    Thank you! I will have my java developer job technical interview in 6 hours. Appreciate it!

  • @hussamaladdin8469
    @hussamaladdin8469 3 роки тому

    It is amazing how he simplified it. I struggled with that topic for so long but honestly Alex is a living legend :D

  • @feliksbus7713
    @feliksbus7713 5 років тому +13

    Huh, that's what I have to learn for school.
    Thanks

  • @fikrifiqrie
    @fikrifiqrie 4 роки тому

    Thanks...now I can feel better to take my test tonight. Love this channel.

  • @geraldjinx
    @geraldjinx 4 роки тому +2

    I luv ur videos. I knew the channel before my brother

  • @hussammerabet3088
    @hussammerabet3088 4 роки тому

    This guy gave me hope to not give up programming right here 😭 new subscriber

  • @preetsekhon3603
    @preetsekhon3603 4 роки тому

    Bro you actually did it. No clickbait what so ever

  • @zmyslowy27
    @zmyslowy27 5 років тому +2

    Great video as usually. Thx a lot. Even if I know that already it is always a pleasure to watch some new stuff from you.

  • @kennjbmundiz4542
    @kennjbmundiz4542 2 роки тому +1

    My teacher taught us OOP in 5 days, this guy taught me in 1 video!

  • @fcsie
    @fcsie 3 роки тому

    I alr learned these concepts in college, but your explanations simplified it, making it easy to understand, thank you!

  • @C.G.W
    @C.G.W 4 роки тому +1

    It's a really good video to recover my knowledge of Java

  • @gabrielbartholoma7789
    @gabrielbartholoma7789 Рік тому

    Incredible comprimized and performant transferred knowledge. Well done bro.

  • @JoshTheGiff
    @JoshTheGiff 3 роки тому

    This seriously was the first time these all made perfect sense to me. Thank you

  • @Akanksha7795
    @Akanksha7795 5 років тому +1

    Dear Alex , could you please make a thorough video on 2D array as it is quite confusing to solve problems on them and i get stuck in it.
    My second request is if you can help in Algorithms as well which is aked in interviews as it is bit tricky and how we can use it to make programming easy.
    Thankyou for your videos and you are an amazing mentor.

  • @mariavictoriaheine8546
    @mariavictoriaheine8546 4 роки тому

    I am currently studying this at College and I wasnt getting it until now :D Thank u!

  • @VANTYCSolutions
    @VANTYCSolutions 4 роки тому

    Thank you. The whole world should be explained with this philosophy.

  • @rafkon1255
    @rafkon1255 6 місяців тому +1

    You might honestly be the goat

  • @OConnelsSideOfDaRiver
    @OConnelsSideOfDaRiver 2 роки тому

    Bro, you just salvaged my entire career! bless!

  • @Kisakisrecipes
    @Kisakisrecipes 3 місяці тому +1

    Alex, thank you so much for making Java videos. You really helped me get a Job!!! 😇😊😊😊 You are very Appreciated ❤

  • @jibrilmohamed743
    @jibrilmohamed743 4 роки тому

    This video was more useful than I initially thought. THANKS!!!

  • @janno288
    @janno288 4 роки тому

    I wachted the video on 2x speed so I can learn it in 5 Minutes and it worked.
    thanks!

  • @donlugue2922
    @donlugue2922 4 роки тому

    Modularity, Data Abstruction, Message Passing are left out and GC, these are part of OOP as well.

  • @lgx22
    @lgx22 3 роки тому

    Dude you are good, keep working these things, don't give up

  • @mzeeshanhussain
    @mzeeshanhussain 13 днів тому

    This is best explanation I have ever seen!

  • @nicholasmercer6397
    @nicholasmercer6397 4 роки тому

    Love this Channel
    you're gonna be my friend this year

  • @letsherptothederp
    @letsherptothederp 4 роки тому

    Thanks for such a quick, concise video. This was a wonderful explanation.

  • @nexusclarum8000
    @nexusclarum8000 5 років тому +1

    That's *not* what polymorphism means. That's overloading. If for example, you want a single container like an array (vector) that can hold many different types of objects in a single instance that's when you would use polymorphism. Basically you implement an interface. I'm not a java guy I'm more of a C/C++ person. In C/C++ we use virtual functions. In Java I'm pretty sure there are abstract and interface keywords etc for it.

  • @aivannah7308
    @aivannah7308 2 роки тому +1

    wow I'm shock i really do understand it 😭. Thank youu, i thought i was going to study a day for dis

  • @hasanparasteh5242
    @hasanparasteh5242 5 років тому +1

    Thanks, I just found anything I wanted about OOP in java!

  • @roastxbeefx7744
    @roastxbeefx7744 4 роки тому +3

    Thank you for explaining this to me like im 5. Now I can understand it finally. The issue with college is that they explain things to us like were smart. As Kevin Malone graciously said "Why waste time say lot word when few word do trick".

  • @AshutoshMishraam33
    @AshutoshMishraam33 4 роки тому

    How brilliantly you teach all these things of java....🙏respect ❤️

  • @spongewent1479
    @spongewent1479 3 роки тому +1

    1:49 not exactly Polymorphism
    Polymorphism means you can look at a specific class from different forms (subclasses)
    it's method overloading, not polymorphism