PHP OOP Bangla Tutorial part-7 (Inheritance of Construct/destruct)

Опубликовано: 15 Август 2018
на канале: Code With Mehedi
566
17

PHP OOP Bangla Tutorial part-7 (Inheritance and Construct/destruct)
Inheritance and Construct/destruct
Parent class constructor/destructor are not implicitly called if the child class defines them as well. In order to run a parent constructor (or destructor), a call to parent::__construct() within the child constructor is required. If the child does not define a constructor then it may be inherited from the parent class just like a normal class method.

parent keyword
Similar to 'self' keyword which is used to access class level static and constant features, parent is used to access super class level features from subclass that includes construct/destruct and overridden methods (next topic).


Смотрите видео PHP OOP Bangla Tutorial part-7 (Inheritance of Construct/destruct) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code With Mehedi 15 Август 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 566 раз и оно понравилось 17 людям.