Short video - L'héritage en programmation orientée objet

3 Oct 2022 · 1 min
1:07

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.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content