8.1: What is Object-Oriented Programming (OOP)? - Processing Tutorial

Sdílet
Vložit
  • čas přidán 20. 07. 2024
  • This video covers the basic theory behind object-oriented programming in Processing/Java and discusses the difference between a "class" and an "object" instance.
    Accompanies Chapter 8 from Learning Processing A Beginner's Guide to Programming, Images,Animation, and Interaction
    Official book website: learningprocessing.com/
    Twitter: / shiffman
    Link to examples : learningprocessing.com/
    Contact: / shiffman
    Next video: • 8.2: Defining a Class ...
    Complete Chapter: • 8: Object-Oriented Pro...
    (Note this video was shot in Fall 2012.)
    Help us caption & translate this video!
    amara.org/v/QbxM/
    📄 Code of Conduct: github.com/CodingTrain/Code-o...

Komentáře • 226

  • @christopherkatz9484
    @christopherkatz9484 Před 4 lety +28

    Your energy combined with how you don't try to explain things by coding it and saying "see?" like everyone else does makes this one of the best videos I have seen on the subject

  • @musicsavestheworld1383
    @musicsavestheworld1383 Před 4 lety +16

    Seriously, this man is one of the best teachers the world has produced, I would love to know what teachers he recommends when he is this good.

  • @PabloPerroPerro
    @PabloPerroPerro Před 4 lety +65

    "Object Oriented Programming: A Philosophical Approach"

  • @pockx7972
    @pockx7972 Před 6 lety +10

    My teacher just reads from the book the entire class and expects us to listen and understand every word she's saying, thank you for making these helpful videos.

  • @haley2486
    @haley2486 Před 6 lety +16

    This helped me to actually understand the differences between writing code in a class vs. an object. Thanks!

  • @mazd5239
    @mazd5239 Před 6 lety +25

    dude I look at your videos first as a stand-up comedy than a teaching course

    • @andrewr888r
      @andrewr888r Před 3 lety

      Yo where did you get your profile picture from?

  • @mureithikivuti
    @mureithikivuti Před 7 lety +224

    I love your energy. You're clearly doing what you love

    • @thomashvnmusic
      @thomashvnmusic Před 3 lety +2

      We love what he does too.

    • @mureithikivuti
      @mureithikivuti Před 3 lety

      @@thomashvnmusic IKR

    • @mureithikivuti
      @mureithikivuti Před 3 lety

      @@thomashvnmusic IKR

    • @sayyamjain4370
      @sayyamjain4370 Před 3 lety

      @@mureithikivuti Nope when we do these things you have to love thay work if you don't you can't learn more things in it as simple as that :)

  • @jodo6329
    @jodo6329 Před 6 lety +6

    I have no interest in learning how to code but I watch your videos because you never fail to put a smile on my face. Thank you

  • @VitorVelosoSA
    @VitorVelosoSA Před 5 lety +3

    Best video for beginners of OOP. Congrats. I just discovered your channel and I'm glad that I did. Keep up the good work!

  • @alex-tg9jo
    @alex-tg9jo Před 7 lety +244

    I have data, i have functionality ughh object-oriented prgramming

  • @soadsam
    @soadsam Před 8 lety +54

    i love your videos so much. such good refreshers and you make them entertaining to watch

  • @randomloader9868
    @randomloader9868 Před 6 lety +2

    Oddly enough this is the first of your videos I have seen, however I found it very helpful as I intend to create a video game and am focusing on majoring in coding for college. I hope you can continue to do this, because you are very good at it

  • @ramizsilawy1169
    @ramizsilawy1169 Před 4 lety +4

    7:21 the ball hitting the corner was really satisfying!

  • @KayKay-pu1cz
    @KayKay-pu1cz Před 6 lety +2

    watching your videos makes coding so much more fun! I love your energy!

  • @JulienTremblay77
    @JulienTremblay77 Před 3 lety +1

    FINALLY... someone who speaks in a "HUMAN" language when trying to explain "coding" to the masses. Thanks man for making it much easier to understand. Keep up the good work!!

  • @ITotallyLoveClocks
    @ITotallyLoveClocks Před 6 lety +7

    man something just clicked while watching this video, thank you, seriously, that human example was perfect

  • @smaklilu90
    @smaklilu90 Před 6 lety +5

    Object-Oriented demystified. text books make a simple concept complex . thank you man!

  • @Stevethesearcher
    @Stevethesearcher Před 7 lety +52

    This video helped me understand the concept of "Object Orientated Programming" much better than any other video I have watched on CZcams. I am still a bit vague but I am getting there. You have Data and it's associated functionality which is called a class which is like a template. From that class you then create an object. So an object is an instance of a class.

    • @DormantIdeasNIQ
      @DormantIdeasNIQ Před 6 lety

      This guy sucks... you have no idea what you're talking about!
      Watch this instead and learn correctly, accurately and completely:
      czcams.com/video/lbXsrHGhBAU/video.html

    • @nielsjohnson-laird6589
      @nielsjohnson-laird6589 Před 6 lety +20

      Sorry, I have to respectfully disagree with you. The video you link to is 29 mins long and is a very dry and clinical explanation. Yes, I know it is more technically complete, but this is CZcams, you've got 10 minutes or less to get to the point!
      Daniel's explanation is less than 8 minutes which granted can not get into the details of OOP, but it is definitely more approachable to neophyte programmers which is the goal.
      If anyone asks me about OOP I will send them to this video first. Once they have experience of the basics then I will show them the more technically complete video.

    • @FelixMT
      @FelixMT Před 5 lety +4

      @@DormantIdeasNIQ Sorry, I have to respectfully disagree with you. The video you link to is 29 mins long and is a very dry and clinical explanation. Yes, I know it is more technically complete, but this is CZcams, you've got 10 minutes or less to get to the point!
      Daniel's explanation is less than 8 minutes which granted can not get into the details of OOP, but it is definitely more approachable to neophyte programmers which is the goal.
      If anyone asks me about OOP I will send them to this video first. Once they have experience of the basics then I will show them the more technically complete video.

    • @ArrKayLondon
      @ArrKayLondon Před 4 lety

      @@FelixMTlolz

  • @anitam5159
    @anitam5159 Před 8 lety +12

    wow! do you also have videos on math? We are lucky you're sharing your knowledge with us.

    • @TheCodingTrain
      @TheCodingTrain  Před 8 lety +5

      +Anita Mirage thanks for the nice feedback! I cover some math topics in the nature of code series: czcams.com/users/shiffmanplaylists?shelf_id=6&view=50&sort=dd

  • @pragsangha6828
    @pragsangha6828 Před 7 lety

    Finally a video on internet for clearly understanding OOP. Nice work mate!

  • @laylaalma4468
    @laylaalma4468 Před 5 lety +1

    best description i've seen so far

  • @bassamodaymat8329
    @bassamodaymat8329 Před 5 lety

    I know this is an old video but I LOVE your vids bro, Your educational skill is way important the oxygen is important to us.

  • @michaelbryant3855
    @michaelbryant3855 Před 8 lety

    I can not thank you enough for these videos! The last programming course I took was Pascal in 1988. You are helping me be less of a dinosaur.

  • @Einhamer
    @Einhamer Před 6 lety +12

    FInally, something that mi teacher didn't teached my in 6 months... finally i get WHY do we have classes, what is a class and WHAT is a n object.... THANK YOU!!!

    • @DormantIdeasNIQ
      @DormantIdeasNIQ Před 6 lety

      You have no clue... watch something good instead of this waste of time
      czcams.com/video/lbXsrHGhBAU/video.html

  • @badweetabix
    @badweetabix Před 3 lety

    Thank you for making these series of videos. I very much appreciate your approach to this subject without the arrogance and sneering at other programming methods so prevalent in other videos.

  • @musaabaz2271
    @musaabaz2271 Před 3 lety

    By far the best programming course ever attended! Thank you very much Dan I wish I found your videos 4-5 ago. Greeting from the Netherlands

  • @kolyxix
    @kolyxix Před 6 lety

    I like the enthusiasm and vigor with which he explains things

  • @agustincarbajal4086
    @agustincarbajal4086 Před 4 lety

    Hi, really like your videos, thanks for that! I still have the following question though: object-oriented as compared to what-oriented? what are the other options around there?

  • @nikosroom1913
    @nikosroom1913 Před 6 lety

    Fantastic explanation. Your enthusiasm is contagious!

  • @ST-hm1uz
    @ST-hm1uz Před 6 lety +3

    Really good and easy to follow. Thank You good sir.

  • @brandonulrich9991
    @brandonulrich9991 Před 6 lety

    In reference to when the "ball" code details are shown at 4:42 as separate from the "bouncing ball" code, is this considered abstraction?

  • @johng5295
    @johng5295 Před rokem +2

    Thanks in a million! Very well explained. This is the nth time that I am watching this again. Great content. Awesome. I couldn't find this explanation--simply put anywhere else. “Great teachers are hard to find”. Grade: A++ 💥

  • @yash-xx2pu
    @yash-xx2pu Před 7 měsíci

    i have so much respect and appreciation for the passionate educators out there who make education so accessible

  • @sammes8468
    @sammes8468 Před 7 lety +3

    Thanks for great videos! I watch them with speed x2 and it makes it even more fun! :D

    • @sensenlau
      @sensenlau Před 7 lety +1

      I just can't help laughing out.HAHAHAHA

  • @eyewas9245
    @eyewas9245 Před 4 lety

    One of the best videos I've seen in an endless void of information_

  • @nishyu9101
    @nishyu9101 Před 3 lety +1

    you are like a power charged ball of fiery OOP guy..it makes us want to learn whatever you are teaching!

  • @myles199
    @myles199 Před 8 lety +15

    Amazing videos, really helping throughout my degree cheers.

  • @arjuadhikari8528
    @arjuadhikari8528 Před 4 lety +2

    After watching this video i really want to attend his class in real . i guess it will be the most happy class i have ever been in my entire life .

  • @eslamzaki4530
    @eslamzaki4530 Před 4 lety

    i never get bored while you teaching , YOU ARE SPECTACULAR

  • @vishank7
    @vishank7 Před 4 lety

    This is sooo cool! Really enjoyed learning with your enthusiasm sir.

  • @DasCartoonLand
    @DasCartoonLand Před 5 lety

    great explanation!! love your videos, thanks for sharing knowledge and enthusiasm

  • @kameron1563
    @kameron1563 Před 8 lety +3

    AWESOME vids man. keep the up work good

  • @atillacodesstuff1223
    @atillacodesstuff1223 Před rokem

    been programming for about 2 years, but this is super fun xD thanks for the energy and positivity :D

  • @SmartProgramming
    @SmartProgramming Před 5 lety

    awesome sir, the way you have explained is really great, thanks a ton 👍👍👍👍🙂🙂🙂🙂

  • @ahmetcemkab3419
    @ahmetcemkab3419 Před 5 lety +1

    Thanks for video.
    Great explanation of oop base now its clear for me :D

  • @foley001
    @foley001 Před 6 lety +1

    Thanks, very clear and useful explanation.

  • @lifeok6188
    @lifeok6188 Před 4 lety

    Your teaching style is world class and keep programming fun 👍

  • @jackgaro4928
    @jackgaro4928 Před 6 lety

    Hello my friend, first of all I want to say thanks and congratulations for all your videos/projects.
    Your energy is incredible and I think all of us can understand you easily.
    I have been waiting for two projects:
    1- Learning C programming. I think for most of us will be really interesting.
    2- Any software for our sons to increase their interest on programming and not only playing....
    Thanks a lot

  • @goodlife7138
    @goodlife7138 Před 7 lety

    This is brilliant. I learnt so much better with your metaphors!! Thank you so much!! subscribed!!

  • @Andrea-lf3jq
    @Andrea-lf3jq Před 4 lety +1

    You're ridiculously good at teaching

  • @hassaanrazanow701
    @hassaanrazanow701 Před 2 lety

    love the spirit, and the way of explaining is also commendable!

  • @JohnDoe-rt2um
    @JohnDoe-rt2um Před 3 lety

    So its like you have a ball this ball has curtain behaviors curtain attributes. Now If I remove the ball but still have the behaviors/attributes this is an object. I can assign this object to other balls or sprites but in its essence and object is something that serves a purpose. Its this right?

  • @colza1025
    @colza1025 Před 5 lety +2

    Awesome energy!!!!

  • @petrkuchar8857
    @petrkuchar8857 Před 4 lety

    Great explanation!

  • @TheSamiya17
    @TheSamiya17 Před 7 lety

    Dude, I might have a chance to pass my OOP exam now. great videoes!!

  • @ratkabu
    @ratkabu Před 6 lety +5

    When I am trying to learn something new, I always looks for "Coding Train + New Stuffs" but too bad, Daniel just use processing on his programming language.

  • @soufianelaaroussi5355
    @soufianelaaroussi5355 Před 9 lety

    hi
    thanks for this tutor
    pllz : how to run Gctrl in processing ?
    &
    how to connect Arduino with Processing ?
    ....

  • @GasparinPR
    @GasparinPR Před 3 lety

    I understand a lot more now. Thank you Coding Train.

  • @myworldisenogh
    @myworldisenogh Před 4 lety

    Thank you man, I am not a programmer yet I got what you say, you made it esay and made my day!

  • @energynat
    @energynat Před 8 lety

    i learned lots of things from your videos daniel ! and now i am working on a space invaders like game ! thanks to you !

  • @ismailalyami178
    @ismailalyami178 Před 7 lety +3

    what is the compiler you use to run your program?

  • @vihaanz2859
    @vihaanz2859 Před 3 lety

    Thanks for making good videos like these. Please keep making them! :)

  • @fundatamdogan
    @fundatamdogan Před 3 lety

    thank you so much for this part,I am able to bounce ball from all edges with object oriented .I learned something that I ve been always wonder since I start to learn coding :))

  • @allenzhao3389
    @allenzhao3389 Před 7 lety

    im amazed by his energy

  • @Smomid
    @Smomid Před 5 lety

    these tutorials are so fucking good.
    I would be totally lost without these.
    Thank You!!!

  • @MahmudulHasan-du2nw
    @MahmudulHasan-du2nw Před 5 lety

    more practical than others!!

  • @wilsonfinklergeraldo3797
    @wilsonfinklergeraldo3797 Před 6 lety +1

    wow, now I can see. Thank you very much

  • @GauravSingh-ku5xy
    @GauravSingh-ku5xy Před 4 lety

    this guy loves his work, i can tell

  • @jonathancreasman535
    @jonathancreasman535 Před 3 lety

    It's impossible to get bored watching this guy teach

  • @contemplative_jasmin
    @contemplative_jasmin Před 5 lety

    Curious about what your myers-briggs type is

  • @stephanurkel7567
    @stephanurkel7567 Před 6 lety

    great explanation! Thanks.

  • @Yuka_1990
    @Yuka_1990 Před 3 lety

    Thanks. Nice explanation :)

  • @jhpk4495
    @jhpk4495 Před 6 lety

    you're a great teacher

  • @LorentzInvariance
    @LorentzInvariance Před 6 lety +2

    Just found this video when searching for OOP as it applies to ladder logic (IEC 6113, un-fun stuff) and thought I would give it a look. This is fantastic; This is the first instance I've seen where someone related the idea of objects and functionality so well to the real world. Kudos to you good sir!

  • @liudas5377
    @liudas5377 Před 6 lety

    That was really good - thanks

  • @whenthethebeansstrikeback6728

    Human: I AM HUMAN
    Alexa: I wish I could eat

  • @semaibrahimova2045
    @semaibrahimova2045 Před 7 lety

    Wow enjoyed the video :D had no idea what the oop meant now i got it thanks))

  • @polmata5007
    @polmata5007 Před 6 lety

    this guy is just brilliant

  • @sivaramaraju6218
    @sivaramaraju6218 Před 6 lety +2

    I am an instance of the entity human being .......WOW
    That word helped me to realize some what......!

  • @milesemanuelpaavola7994

    Thank you for making this video! :-D

  • @Agent007inMetin2
    @Agent007inMetin2 Před 5 lety +1

    Thanks a lot, still revelant.

  • @mikeroz8228
    @mikeroz8228 Před 4 lety

    Finally, my heart understood what OOP is.

  • @TheMangoman1220
    @TheMangoman1220 Před 5 lety +1

    What I have been trying to understand all month. Took me 7 minutes to learn with this video. ._.

  • @marcosguillermoisunzaalvar3868

    Great video

  • @alvandsaket2140
    @alvandsaket2140 Před 2 lety

    anybody knows how to call function from another tab in python mode?

  • @muzzygully3144
    @muzzygully3144 Před 7 lety

    So the Template is like an image and the object is when you add all the image's in the template to make a animation.Am i right or not very new to this???

    • @er4795
      @er4795 Před 7 lety +2

      A Template (or class) is like a blueprint for an object. It defines attributes that it can have and things that it can do

  • @sayyamjain4370
    @sayyamjain4370 Před 3 lety +1

    Try to give a good transition when you switch between Board and Code Editor it will then look more nice

  • @ayaelghali1480
    @ayaelghali1480 Před 6 lety

    oh ..it really helps me thanks alot.

  • @OrangeC7
    @OrangeC7 Před 6 lety +7

    3:54
    functio--eh whatever I'll just write some scribbles and people will know what I'm talking about

  • @ugenedc
    @ugenedc Před 5 lety +1

    Great video. Might need to turn up your audio levels man.

  • @juneoriginal
    @juneoriginal Před 7 lety

    Soo helpful :)
    thanks

  • @ravabat5841
    @ravabat5841 Před 5 lety +1

    Hahaha you are great man! Like your videos!

  • @fahmisbas
    @fahmisbas Před 6 měsíci

    This is where I started; now I have become a full-time software eng!

  • @jaclynblumenthal3078
    @jaclynblumenthal3078 Před 7 lety

    Thank you so much this is so helpful and What an amazing teaching style would love to talk more n pick at your brain being a mathematician lol

  • @TheRangeControl
    @TheRangeControl Před 4 lety

    THANK YOU!!!

  • @huraibyel-huraiby7462
    @huraibyel-huraiby7462 Před 5 lety +13

    5:38 "I AM HUMAN!!" :D

  • @nikhilchigali
    @nikhilchigali Před 6 lety

    Is JS an object oriented programming language??

  • @muktadanu1962
    @muktadanu1962 Před 7 lety

    thank you dude :) you are amazing !!

  • @mathewcose3791
    @mathewcose3791 Před 6 lety +1

    this... is how i understand things

  • @LoriWolfcat
    @LoriWolfcat Před 7 lety

    So, why can't the object just be animated?? To me, I still don't get the point of C, C++, C#, and Java. It can do all things that I can just draw and animate.