Object Oriented PHP #8 - Overriding Properties & Methods

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • Hey gang, in this PHP tutorial we'll see how we can override the properties and methods of a sub-class, which are inherited from a parent class.
    ----------------------------------------
    🐱‍💻 🐱‍💻 Course Links:
    Course files - github.com/iam...
    🐱‍💻 🐱‍💻 Other Related Courses:
    + PHP Tutorial for Beginners - • PHP Tutorial for Begin...

КОМЕНТАРІ • 30

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

    The best PHP OOP Tutorial on UA-cam. Great start and let's see how far we'll go :)

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

      Thanks so much :)

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

      Let's go all the way...

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

      @@MrRhysstevens what do you mean?

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

    I have already got myself a job as a developer and a large reason for that was your tutorials. Thx! :)

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

      Wow that's awesome :D Congrats mate :D

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

      @@NetNinja thx Ninja! :)

  • @JorgeGarcia-ef4py
    @JorgeGarcia-ef4py 2 роки тому +1

    First, hit "Like". Then "Watch Video". You're changing lives all around the world Shaun-Sama. Best vibes from Colombia!!!

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

    I absolutely loving this series. Very well paced and easy to understand ❤️
    I hope you do a Laravel 6 series soon.

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

    This is the BEST OOP tutorial! Super easy to understand and straight forward. Keep teaching and more power! :)

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

    I got to say, this is an expertly put together tutorial, covers all the basics and they are explained extremely well for even those like me (dumber :D) to understand.

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

    can you please build a complete registration system with php oop ? as a practical example

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

    Great one Sensei!! You Rock!!

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

    Awesome series, cheers nn!

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

    Very nice as usual. Can we have a tutorial about how to combine oop with PDO in the context of a database files uploading?

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

    Would be great to see real examples using oop from the beginning to something practical.

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

    I was on interview today. Guy told me that I should learn Python, not PHP. He told that Python is more futuristic and generally more "solid". What is your opinion?

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

    sir you are the great
    love from PAKISTAN

  • @64mkb
    @64mkb 2 роки тому

    I don't get the Notice: undefined property feedback. It just doesn't not display the email, but the rest of the message comes through.

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

    Hey Shaun can you please also do a video tutorial on advanced product filers?

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

    thank you very much for the videos . . .
    which theme you are using in vscode ???

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

    very simple .. thanks alot

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

    Somewhere between 'Tech with Tim' and 'Net Ninja' there is a teaching pace I can deal with. Sigh. Although there seems to be a lot of people who like his pace.

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

    make a tutorial series on PHP MVC

  • @user-sd4ik4mc3h
    @user-sd4ik4mc3h Рік тому

    It is too easy.
    How to override property type by inherited class?
    For example,
    class BaseOptions{
    public ?string $dbName=null;
    }
    class SecondOptions
    extends BaseOptions
    {
    public ?string $username=null;
    public ?string $userpass=null;
    }
    class A {
    protected BaseOptions $options;
    }
    class B
    extends A
    {
    protected SecondOptions $options; // Here incompatible type by sintax of PHP. But compatible by interface and inheritance.
    }

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

    4:56 spoiler alert: should be protected 😊

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

    Great, you could just do one big video of PHP OOP tho