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).
Watch video PHP OOP Bangla Tutorial part-7 (Inheritance of Construct/destruct) online, duration hours minute second in high quality that is uploaded to the channel Code With Mehedi 15 August 2018. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 566 times and liked it 17 visitors.