
In this short French instructional video, the speaker explains inheritance, a core concept of object‑oriented programming, as a mechanism for reusing and extending existing class code. He illustrates the idea with a concrete example: a Counter class that tracks unique page visits. The Counter.php file is autoloaded, instantiated, and its current count (21) is displayed, matching the value stored in a backing text file. Because the counter only increments on the first visit, refreshing the page does not change the count. To demonstrate how inheritance can alter behavior, the speaker modifies the class by commenting out the condition that restricts increments to unique visits, showing that the counter now increments on every page refresh. The video thus uses a simple, hands‑on code example to make the abstract notion of inheritance tangible.










