PHP OOP: Understanding Interfaces and Implementing Them | PHP OOP Tutorial for Beginner |[Hindi] #10

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

КОМЕНТАРІ • 8

  • @Trendi_Vibes
    @Trendi_Vibes 30 хвилин тому

    Thax bhai awesome video ❤❤

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

    amazng man,,,,got the real use of of opps from this chanles,,,

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

    Very good explanation, keep continue doing such more useful php oop videos, thanks!

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

    Well explained, it cleared my concept of interfaces.

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

    line number 26(is it dependency injection)?

  • @UserThird-le3cj
    @UserThird-le3cj 5 місяців тому

    Just to let you know the method he made 'function drivecar(CarInterface $cars)' this parameter is known as Type Hinting
    Type Hinting is a way to tell a method that the object which is going to be passed must be from a specific class. Which in this case is CarInterface. '$cars' is just a reference to let the method know that an object is going to be passed, you can use any other name like '$c' or '$a' but the class should have the same name as shown in this example.

    • @ajay-yadav
      @ajay-yadav  5 місяців тому

      awesome. thanks for the explanation.

    • @rajbharty9606
      @rajbharty9606 4 місяці тому

      ​@@ajay-yadav sir is any difference we face if we only pass car as object in parameter in function yes then how