What Is Object Oriented Programming?

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024
  • НаукаНаука

Комментарии • 57

  • @TheRealFFS
    @TheRealFFS 8 лет назад +25

    You should have finished with an OO Design Principle: "Favor composition over inheritance"

    • @DaveXiang
      @DaveXiang  8 лет назад +7

      +FFSultrAslan I will update vote this and hope it gets to the top because that is an important point. Thank you

    • @emmanuelkofyagyapong6382
      @emmanuelkofyagyapong6382 8 лет назад

      You are better than my professor!

    • @johnm3844
      @johnm3844 8 лет назад

      What is the equivalent of roles in ruby? Thanks!

  • @Ash-ee1hx
    @Ash-ee1hx 4 года назад

    I'm new to your channel but I'm finding your videos really helpful- I appreciate you explaining concepts in depth rather than just glossing over them. It makes me feel like I have a better idea of what I'm actually doing when I code- Thanks!

  • @TheFig31
    @TheFig31 8 лет назад +1

    Bruh!!! I'm current going to university for CS and have been struggling to understand object oriented programming. This is by far one of the best explanations of OOP that I have seen yet, thanks very much!!!

  • @pavlevod
    @pavlevod 7 лет назад +2

    Like the music in the background. Good job man and keep up!

  • @genaroayala8100
    @genaroayala8100 8 лет назад +4

    I love the cat reference. Now i'll be picturing cats washing dishes.

  • @DigitalChaoS
    @DigitalChaoS 8 лет назад

    You too take care man, thank you. I hope to someday reach your skill level.

  • @mohanj3018
    @mohanj3018 7 лет назад

    Fantastic Explanation, Great, Keep it up .

  • @fernandomaluenda4226
    @fernandomaluenda4226 6 лет назад

    I'm a civil engineer student working in hydroinformatics and this type of videos help a lot thanks!

  • @addict6886
    @addict6886 8 лет назад +1

    Hi Dave. I'm having trouble to understand some OO terms: class, object, instance, method. Could u elaborate these terms or make further video about OO with your excellent simplified explanation? Much appreciate.

  • @kamrankamrani9294
    @kamrankamrani9294 8 лет назад

    Thank you a lot! Your way to explain OOP helps me termendous to understand OOP beter. god bless you.

  • @shootingmen
    @shootingmen 8 лет назад

    So, integers are inheritance (an Integer is a number). A method or an array is a composition (A method composes of different statements, inheritances etc while an array composes of several different numbers). A "System.out.println()" is a role(It behaves like a printer), or a multiplier operator (A multiplier operator behaves like a calculator). Am i right?

  • @TAWPhotography
    @TAWPhotography 8 лет назад

    Great job, keep up the work

  • @harshendubhardwaj5283
    @harshendubhardwaj5283 8 лет назад

    Great teachings O wise One!! Thanx.

  • @dation0000
    @dation0000 8 лет назад

    thanks for the video fam , i sure would love to watch you doing some python . or tkinter tutorials have you considered doing that ?

  • @piq-dg3vz
    @piq-dg3vz 8 лет назад

    awesome! is functional programming next?

  • @sirnh
    @sirnh 6 лет назад

    You missed the first most important part, objects are a collection of properties and actions on those properties.

  • @jasondevilliers2777
    @jasondevilliers2777 8 лет назад

    Just in time for me to start my Java class, cheers!

  • @billnyarko4504
    @billnyarko4504 8 лет назад

    Yours videos are always on point

  • @mjsanchez2173
    @mjsanchez2173 8 лет назад +2

    IS A DISHWASHER A MACHINE OR A PERSON ??

  • @Robay146
    @Robay146 7 лет назад

    Thanks Dave!

  • @jonathancorasmin7541
    @jonathancorasmin7541 6 лет назад

    thank you so much .very well explained.

  • @ajaythakkar_
    @ajaythakkar_ 8 лет назад

    hey David nice video. Did you take A.P computer science in high school?

  • @jaredlewis2965
    @jaredlewis2965 8 лет назад +6

    Thanks.

    • @DaveXiang
      @DaveXiang  8 лет назад +1

      +Jared Lewis For sure

  • @fufdbuhy44
    @fufdbuhy44 8 лет назад

    Good job!

  • @aliBoumedyen
    @aliBoumedyen 8 лет назад

    Thanks for the video , nice analogy :) ;

  • @MichaelHwan
    @MichaelHwan 8 лет назад

    Easy to understand explanation

  • @grigordoydoyan2406
    @grigordoydoyan2406 7 лет назад

    Thanks Dude,please make an explanation video about CLASS in PHP. and smth more about OOP. thanks to your style of making videos it is easier to learn,background songs,short videos,and active way of speaking.

  • @simonliu2268
    @simonliu2268 7 лет назад

    Let's say that the things you mentioned in the video refers back to Java right. I get inheritance and you enlightened me with the composition, but are roles like.. interfaces? The fact that my class can inherit a parent class but have many "roles" such as implementing many interfaces? or am i just lacking in knowledge? Let me know what you think Dave.

    • @DaveXiang
      @DaveXiang  7 лет назад +1

      you're right. interfaces can give "roles" to certain classes

  • @invadersmustdie2952
    @invadersmustdie2952 8 лет назад

    Java and C are mostly used. Can you compare these two?

  • @DigitalChaoS
    @DigitalChaoS 8 лет назад

    This is awesome, so is it basically like giving something human characteristics? Well, not exactly human but... We are assigning programs characteristics?

  • @ahmadaziz1800
    @ahmadaziz1800 8 лет назад

    Love the explanation :D

  • @jww47
    @jww47 8 лет назад

    It's awesome.
    Thanks.

  • @johnliu8715
    @johnliu8715 7 лет назад

    what are those called in python?

  • @a_n_m3516
    @a_n_m3516 8 лет назад

    'Behaves like a' relationship explains Interfaces ?

  • @dominigai4717
    @dominigai4717 8 лет назад

    Thanks. simple.

  • @moonwarrior6682
    @moonwarrior6682 8 лет назад

    Thanks. .you are a great teacher! !! :-)

  • @omarshehab585
    @omarshehab585 7 лет назад +8

    A cat can dish wash but not a baby because it has short hands.
    That logic :)

  • @BOSSDONMAN
    @BOSSDONMAN 8 лет назад

    Sorry if this is a stupid question, but what are you more interested in personally, EE or CS?

    • @DaveXiang
      @DaveXiang  8 лет назад

      +BOSSDONMAN That's not a stupid question at all. Where I went to school, EE was mixed with CE a lot and I leaned more towards the computer side. EE was cool, but a lot of analog circuits, DSP classes, etc. I just didn't have an affinity towards. I'm also nowhere close to being a real Computer Scientist. My first job was as an embedded developer, then I guess one thing led to another and I just started getting into software and software engineering.
      I can't judge those two as majors, I think they're both interesting. But the career path you get into would be substantially different between the two. So far, I'm still enjoying the software and engineering side of things.
      I'm pretty sure all my EE knowledge has gone to shit as well. Haven't soldered anything in years, probably couldn't solve a simple circuit or calculate a FFT. =)
      Don't know if I answered anything here.

    • @BOSSDONMAN
      @BOSSDONMAN 8 лет назад

      Dave Xiang Haha, I believe you answered the question fairly well. I came across your channel from Engineering Truth, and I believe he stated you were a dual major in both EE and CS, so I was personally interested in your take on things individually. I'm currently in the middle of my sophomore year as an EE, but I am considering changing my major to CS or CE if I transfer. Could you perhaps broadly go over how a CS, CE, and EE would approach a particular application and how their roles would likely differ as well as interrelate with each other in a video? Also, though I am pretty well aware of them already, maybe another thing you could add is the various types of jobs and opportunities between each major and how they differ.
      Anyways, great channel and thanks for the reply!

  • @1234macro
    @1234macro 8 лет назад

    Great video, however the music is a bit too loud.

  • @johnm3844
    @johnm3844 8 лет назад

    +Dave Xiang what are roles called in ruby?

    • @DaveXiang
      @DaveXiang  8 лет назад

      Roles are a generic term, almost like "inheritance". So there is no "role" explicitly in ruby. Each language has constructs to implement the idea of roles. I think Ruby you can use modules, C++ you can use abstract classes, Objective C you can use protocols.

  • @CaptainSuperX
    @CaptainSuperX 6 лет назад

    It sounds that "is a" is more like "(new A()) is an A".

  • @ck7603
    @ck7603 8 лет назад

    I don't know why but OOP seems so much simpler than everything else :P

  • @fernandopaulino2055
    @fernandopaulino2055 7 лет назад

    Wish I saw this when I was using OOP in my TP -.-

  • @cornyus3252
    @cornyus3252 8 лет назад

    He is talking about class right?

  • @pzg2008
    @pzg2008 6 лет назад

    I never understood why people wear hats inside the house