Object Oriented Programming (OOP) for Beginners in PHP

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • Learn the very basics of OOP as done in PHP. We will go over two classic OOP concepts: Encapsulation then Inheritance

КОМЕНТАРІ • 195

  • @mikebeckett389
    @mikebeckett389 8 років тому +61

    brad this video is amazing. You can actually teach. Your the only person I've come across who's tutorials don't speak like the person has some special knowledge. You explain in depth covering the exact parts that always have confused me. It's realy helpful that you go over the things which seem to mean nothing but actually are the key to understanding whats happening. Thanks for the video

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

      Thanks Mike

    • @8Raf8
      @8Raf8 8 років тому +4

      +Mike Beckett I could have not said it better myself, I also agree!! THANKS BRAD WESTFALL

    • @pbwneeddd
      @pbwneeddd 8 років тому +4

      +Mike Beckett I agree . Thank you Brad!

    • @recluhhit2439
      @recluhhit2439 7 років тому

      Necesito un desarrollador PHP OOP, si estan interesados por favor enviar su CV a.... a.dominguez@infinitisourcing.com.mx
      Alberto Benítez

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

    Thanks! Most of the programming tutorials are going so fast, like it's a typing contest instead of a tutorial. You're doing it just right, I really appreciate it.

  • @ibidungeorge1073
    @ibidungeorge1073 8 років тому +19

    Wao Brad i must recommend your effort and teaching skills this is the best video i ever came a crossed on the internet that explained concept of OOP in php thank you.

    • @BradWestfall
      @BradWestfall  8 років тому +2

      Thank you, I'm glad it helps :)

  • @hieronymus1981
    @hieronymus1981 8 років тому +1

    Hi Brad,
    Came across this video and I have to say, hands down. Thank you for this 40 minutes video about OOP PHP. Just what I needed.

  • @trentonstreator7349
    @trentonstreator7349 6 років тому

    I slowed it down to .5 to keep up better... Now Ray Romano is teaching me about Object Oriented Programming in a very condescending and easy to learn way. Great video xD
    I actually learned a ton! This info is good for all OOP projects! Thanks again!

  • @scottshalom4545
    @scottshalom4545 9 років тому +2

    complete agree with Frode...this is the best, most clear explanation of basic OOP in PHP. Thank you Brad!

  • @perfect.stealth
    @perfect.stealth 7 років тому +3

    Thank you very much. You taught me what i could never learn. I been watching a lot of videos about OOP but none of them ever made me understand it like this. Keep up the style

  • @user-nc2yn8cs2y
    @user-nc2yn8cs2y 7 років тому

    Finally a real good tutorial, I have to say, you treat a person like he / she don't have a clue for PHP OOP in this case, and explain clearly what is OOP.
    I know the PHP OOP, even advanced, but I have to say that some things around are teached in a bad way, so bad that maybe simple concepts are hard to understand.
    You made the difference, bravo!!!

  • @barfgameplay
    @barfgameplay 7 років тому +2

    Thanks a lot, finally an OOP tutorial i understand. Most of the tutorials i've tried out were too abstract and difficult to understand for me. I'm used to pretty linear functional programming, so OOP is quite a foreign concept to me. However, you used good examples that are actually usable in a real script instead of some foobar nonsense, so it made it way easier for me to understand.

  • @zharapify
    @zharapify 8 років тому +1

    WOW! Nice video and audio quality! and most of all best teacher! After many videos I watched, this is the one sheds light for me to understand OOP in PHP very well. Thanks guru Brad! This means a lot for me

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

    Thanks, helped me a lot, calm and clean teaching style, enjoyed it a lot.

  • @terrancewiley4486
    @terrancewiley4486 9 років тому

    By far the best PHP tutorial I've seen. You explained things very well for people like myself who are learning on their own.

  • @RajuKumar-rg1jy
    @RajuKumar-rg1jy 8 років тому +2

    Brad, hats off for you. I highly appreciate your deep knowledge and good grasp of subject knowledge. More importantly, you are a great teacher. You have great patience. OOP concept had bothered me so much. You have cleared my doubt so much. Thanks a lot.
    I would also see your css3 tutorials. Till now I have searched many videos for php oop or general oop. But your one only could clear my concept .
    Best wishes!!

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

    That was an awesome explanation of OOP Basics Brad. I enjoyed watching it even though I am a teacher of PHP7 myself. I think when I do my OOP Tutorial I am going to take your example of the vehicles for illustrative purposes. Again great presentation. :-)

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

      Thank you! Yea I was teaching at a bootcamp and after teaching these concepts over and over, I decided to make this video for them so I didn't have to repeat myself as much ;)

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

      @@BradWestfall LOL I know what you mean. It is so cumbersome to have to repeat over and over again but I guess that is part of the deal when you teach this stuff. It like a band that has to play the same song over and over again for years and years. I imagine that gets old as well, lol. Again, great presentation. I love the illustrative tool you presented.

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

      So

  • @dassrull
    @dassrull 7 років тому

    Very well explained, Brad! Good to see someone able to show in detail how the data flows inside the class visually!

  • @ASD9344
    @ASD9344 7 років тому

    Hi Brad!
    Your tutorial on Object Oriented Programming (OOP) for Beginners in PHP was supeb!
    I've learnt it. Now I want to learn some advanced concepts of OOP. Please make another video on that topic as you promised.
    Thank You

  • @rogernkosi8420
    @rogernkosi8420 8 років тому +2

    This is good, very good, even easier with my Java knowledge, but PHP + OO wise; this is great, very good.

  • @zerocoded
    @zerocoded 9 років тому +2

    Thank you profoundly for sharing such a beautiful experience...
    You have a smooth talented way in expressing/teaching complex objects :)

  • @pearlipop
    @pearlipop 8 років тому +2

    Thank you so much for this video! This was incredibly helpful, you made it super easy to understand. The content flow of the video was very smooth. Thank you, thank you, thank you.

  • @jaewoojung4867
    @jaewoojung4867 8 років тому +2

    amazing Brad!
    we all waiting ur second tutorial relate to PHP !

  • @renedecastro3729
    @renedecastro3729 6 років тому

    wow you are better than all my prof. combined together all at once … thousand salute for you sir.

    • @BradWestfall
      @BradWestfall  6 років тому

      I'm glad you liked the videos ;)

  • @adriatic123
    @adriatic123 7 років тому

    Very good teaching skills, and clear explanation of not so easy to grasp topic. Thanks

  • @alexgould9244
    @alexgould9244 6 років тому

    This is an amazing video! I was scared to try OOP before, but now I'm not worried. You're a really good teacher.
    Thank you for making this :D

  • @jameskoussertari1154
    @jameskoussertari1154 9 років тому +1

    Very good beginners tutorial and clearly explained. Thanks

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

    great video, very in detail. 5/5 programmers

  • @RickBeacham
    @RickBeacham 9 років тому +1

    Bravo! Good example. Thanks for taking out the OOP jargon so I can follow it step by step.
    In C++ for example its popular to create public functions inside a class named getters and setters to modify and view private vars.

  • @DmitriuTT
    @DmitriuTT 8 років тому

    This is an amazing stuff. And it's more easier perceived then others. Thank you a lot for your lesson. I've begun to understand perfectly how the OOP works!

  • @varamanikya
    @varamanikya 8 років тому

    Excellent. Super simple. very clear explanation. Thanks for the video.

  • @imran_ashraf
    @imran_ashraf 9 років тому +6

    really really good thank you Brad :-) can you please do a video on interfaces and abstract classes in PHP? Also one on advanced OOP PHP as you explain things really well? Thank you again!

    • @BradWestfall
      @BradWestfall  9 років тому +2

      I'll see if I can find time. Thanks Imran

  • @johnomeara72
    @johnomeara72 7 років тому

    excellent tutorial; Classes and subclasses finally make sense! Cheers.

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

    This video helped me a lot, i was stuggling with OOP in PHP but this got me a clear insight on how the begginer stuff works. I know you didn't make videos for a time now but it would help a lot of people if you extended your lessons a bit more! Thanks a lot anyways!

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

      I appreciate it, rome, thank you. I just don't do PHP anymore

  • @Perfectaugust
    @Perfectaugust 9 років тому +1

    Perfect!! Short and informative, thanks a lot Brad.

  • @lilpurmp4981
    @lilpurmp4981 6 років тому

    This is my first time learning Object Oriented PHP. Coming from a Java background, this lesson was very straightforward and easy to understand. Thanks for the excellent video!
    When will you post the next tutorial?

  • @okomi
    @okomi 8 років тому

    Brad have you continued this tutorial?
    If you havent please do, this was by far the clearest most easy to understand OOP explanation I have seen this far.
    Thanks.

  • @djibb.7876
    @djibb.7876 6 років тому

    Really Exellent! You know, you have the passion and the ability to transfert knowledge!
    Well Done @Brad Westfall !

  • @vladpopa8737
    @vladpopa8737 9 років тому +1

    Outstanding OOP tutorial, I really appreciate your work , thanks Brad! :-)

  • @roxanaraicu7376
    @roxanaraicu7376 9 років тому

    Thank you! best introduction to PHP OOP, wonderfully explained!

  • @dubol07
    @dubol07 7 років тому

    Excellent video! Deserves a million views.

  • @peterrichards8587
    @peterrichards8587 8 років тому +1

    Literally went to college for three years to learn programming, they started us straight into OOP php without understantind procedural first to actually understand php! Your video (now that I went and learnt procedural php on my own after college) made more sense to me than any of my college lectures! Any chance of a second video showing interaction with a DB such as phpmyadmin carrying on from what you have done in this video?

    • @BradWestfall
      @BradWestfall  8 років тому

      +Peter Richards Thanks Peter, that means a lot. I don't have as much time as I'd like to make videos anymore. Plus I don't do a lot of PHP anymore. But it's very common to write a class/object that your code will talk to, then that object will talk to the database connection for you - so think if the class or object you write as being a middle-ground. In other words, you'll want to use PDO (in PHP) to connect to the database and PDO will give you a variable which is your active connection. You don't want to toss that variable all around your application though and make calls to the DB from just anywhere. Instead make a class (say it's called DB) and anytime you want to run an SQL statement, you'll talk to your hand written DB class which will in turn tall to the PDO connection? Does that make sense? Then I suggest you look up and try to understand what's called a Singleton Design Pattern which is what your DB class will resemble.
      At the end of the day, it's nice to know how to program these types of things from scratch like Singleton classes for your DB object. But most people have moved on to using frameworks like Laravel which abstract this whole process away from you so you don't have to write all your own stuff. So with frameworks like laravel, you'll talk to an object which will in turn talk to PDO just as I was describing above. But there's a ton of work that's already been done for you

    • @peterrichards8587
      @peterrichards8587 8 років тому

      +Brad Westfall It makes sense a bit. PDO is kind of new to me, could I use mysqli? or is it strictly PDO? I do understand that you submit a form to say a page register.php which will create a new object perhaps of user. Then using a bunch of functions I can do things such as a function public function register(){} which will read in the new user object but also call the database object which I have created?

    • @BradWestfall
      @BradWestfall  8 років тому

      PDO is the next evolution of how PHP peeps are connecting to mysql. Mysqli was the old way. It has some problems especially related to security

    • @BradWestfall
      @BradWestfall  8 років тому

      In fact PDO has been "the thing to use" in the php circles for about 5 years now. So it's not like you have to worry about it being too new and not evolved yet

  • @dironin2363
    @dironin2363 7 років тому

    Thank you, Brad! Very very good tutorial! Simply and clearly.

  • @enigmaofwisdom
    @enigmaofwisdom 9 років тому +1

    Thanks for this. Modern PHP looks very nice.

  • @SuperNikoskas
    @SuperNikoskas 8 років тому +1

    Hey Brad nice work with OOP nice examples and understandable explanation! Keep up with the good work! Thank you!

  • @cheekyfecker
    @cheekyfecker 7 років тому

    Absolute brilliance. Good explanations and demonstrations. Helped me greatly. Please do more :)

  • @bluewatermelon3253
    @bluewatermelon3253 6 років тому

    Best OOP tutorial! Thank you 🙂

  • @bestechnology
    @bestechnology 8 років тому +1

    Very good... and I have never said that about any video on UA-cam before.

  • @elihimself3964
    @elihimself3964 9 років тому +2

    Hi, just wanna say thanks for the great video for some reason i found this to be so easy to follow along with compared to my paid course in Treehouse... Thanks :)

  • @ChrisInTheNorth
    @ChrisInTheNorth 8 років тому +1

    Just what I was looking for; Now need to go see if you have made some more!

    • @BradWestfall
      @BradWestfall  8 років тому +1

      +ChrisInTheNorth Not in PHP, but other stuff

  • @15kstudios
    @15kstudios 7 років тому

    Fantastic OOP explanation, thank you!

  • @rozaimizamahri9604
    @rozaimizamahri9604 7 років тому

    Perfect explanation. . very easy to understand . thanks Brad. :)

  • @goliadking
    @goliadking 8 років тому +1

    Thank you. I think you are a pretty decent teacher!

  • @GlasKoudeCola
    @GlasKoudeCola 8 років тому +1

    Thank you for this video. It really helps getting the concept of all this.

  • @websachi
    @websachi 8 років тому +1

    This is very useful video tutorial, thanks so much

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

    Thank you , best video with real example .&
    It’s not just definition like others 🙏♾

  • @m7amedk
    @m7amedk 6 років тому

    Great video! I was able to understand and implement,Thank you

  • @gayathreeraman
    @gayathreeraman 9 років тому +1

    Thanks for the great video Brad..

  • @JacobDavidCCunningham
    @JacobDavidCCunningham 6 років тому

    damn this is great combined with an online PHP sandbox to follow along with

  • @mowglibok1227
    @mowglibok1227 9 років тому

    video quality is good! thumbs up!

  • @metascopeinitiatives2550
    @metascopeinitiatives2550 6 років тому

    Thank you for this Brad. Really awesome video!

  • @amrousimen684
    @amrousimen684 8 років тому

    a very good lesson, big thanks.
    I think that it is best that you declare variables in the end of classes as private.
    In java it is what we do, i think is the same concept is PHP
    Thanks

  • @wsqplm
    @wsqplm 9 років тому

    Thank you, first oop tutorial that i completely understand.

  • @ihabs2150
    @ihabs2150 7 років тому

    Please make another videos you are totally amazing god bless you...

  • @eduardstefanescu5674
    @eduardstefanescu5674 7 років тому +1

    very good video!

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

    Great tutorial, thanks. 😍. Please do more tutorials about oops in php

  • @Karlponken
    @Karlponken 8 років тому +1

    Great video and explanation, thanks!

  • @emmasam36
    @emmasam36 6 років тому

    This very amazing I just watched it and I get the concepts of class base php OOP .. I love your vids do moree plsss

  • @chaitsipatel6939
    @chaitsipatel6939 8 років тому

    Hi Brad Westfall..
    Your video is just wow. You explain so well that one will start loving OOP.
    I am looking for your other videos as you mentioned on "Encapsulation then Inheritance".
    Where can i find that ??
    And also request you to if you can cover all topics of OOP in PHP .
    I and others will be very very thankful to you.

    • @BradWestfall
      @BradWestfall  8 років тому

      +Chaitsi Patel Thanks Chaitsi, but I don't do a lot of PHP anymore. I don't plan on making more videos, and I'm sorry if I mentioned that I might. However, Inheritance was taught in this video. Inheritance is just when one class inherits functionality from another, like how we did extend. Encapsulation is just the fact that some data and functionality in an object can be kept private, so we can do that with the private word before functions and properties. I think I showed that too

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

    thanks for the video,,looking forwad to many more..i have even subscribed

  • @themafisk
    @themafisk 8 років тому

    Thank you for this video, it was very beneficial.

  • @kenneth8268
    @kenneth8268 8 років тому

    Great video and explanation Sir, Thank you :)

  • @stblad3
    @stblad3 9 років тому

    Good tutorial! Now to get my procedural brain to think differently...

  • @entertain-videos
    @entertain-videos 6 років тому

    Thanks for sharing your knowledge..

  • @webstuff56
    @webstuff56 6 років тому

    very nice walk through!

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

    Excellent

  • @ereztall
    @ereztall 8 років тому +1

    Hey Brad, amazing video, thanks!

  • @shobanasamyayyah3131
    @shobanasamyayyah3131 8 років тому

    Superb ...

  • @MuxtarSegefi
    @MuxtarSegefi 8 років тому +1

    Thank u. You are a good teacher :)

  • @aadancade
    @aadancade 8 років тому +1

    Thanks mate, this is great.

  • @ShendiWijaya1337
    @ShendiWijaya1337 9 років тому +1

    thanks for this explanation sir.

  • @roynilsson1382
    @roynilsson1382 9 років тому +1

    really well explained

  • @OMARI-yp6dk
    @OMARI-yp6dk 8 років тому +2

    thank you very much sir

  • @fstarockaburns425
    @fstarockaburns425 7 років тому

    awesome vid - 15 yrs coding and im still procedural (quite advanced tho :p ).. fyi, plz alt/cmd - tab and f5 - :)
    from here ill go into OOP. Fyi I think the classes make it more arranged - very nice!

  • @dariusdempsey6772
    @dariusdempsey6772 8 років тому

    This is the best example I cam across, Thanks Brad. Do you have video lesson for connection to a database and then pulling results (query) from database using OOP?

    • @BradWestfall
      @BradWestfall  8 років тому

      +Darius Dempsey I don't at the moment. But for PHP, I highly suggest using the PDO library. It has great docs

    • @BradWestfall
      @BradWestfall  8 років тому

      +Darius Dempsey And PDO is built into PHP by default (I believe)

  • @lexxon11
    @lexxon11 8 років тому

    thanks bro, I am coming from C sharp, needed to learn the semantics in PHP

  • @2grahamo
    @2grahamo 8 років тому

    Thx Brad great tutorial.

  • @ahmadaziz1800
    @ahmadaziz1800 9 років тому +1

    This is very helpful :D thanks the 100th likes

  • @bartsimpson2324
    @bartsimpson2324 8 років тому +2

    awesome sound of keyboard :) what kind of keys do you use ?

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

    amazing !Thank you Sir

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

    Bravissimo!!!

  • @sewingsugar9892
    @sewingsugar9892 8 років тому +1

    YOU ARE AWESOME!!!

  • @ghadaezzat89
    @ghadaezzat89 6 років тому

    great tutorial , Thanks

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

    Thank you brad... this video is very useful :)

  • @yuvicdrupibambi
    @yuvicdrupibambi 8 років тому +1

    You Rock !

  • @vavkus
    @vavkus 8 років тому

    Thanks a lot, Mike

  • @IanBussAudio
    @IanBussAudio 7 років тому

    *Awards gold star*
    Thanks!

  • @anils3943
    @anils3943 9 років тому

    thanks a ton for this tutorial.....

  • @alexmmrkv
    @alexmmrkv 7 років тому

    Great video tutorial 5/5 thank you very much!

  • @codeology1
    @codeology1 9 років тому

    Thank you man ... very helpfull ...

  • @dennist.8018
    @dennist.8018 9 років тому +2

    Question, we don't use .class in the file anymore? like User.class.php ?
    You are a good teacher, hope you find the time to teach us more :)

    • @BradWestfall
      @BradWestfall  9 років тому

      Dennis Troost That's a preference thing. Some frameworks wouldn't want you to do that

  • @catherinemelita4806
    @catherinemelita4806 6 років тому

    thanks a lot from greece

  • @SubhashViswakarma
    @SubhashViswakarma 8 років тому +1

    amazing