HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-02-21
1 <p>OOP is a complex concept with many aspects to formalize. Moreover, programmers have used the word OOP to denote different things at different times. There are at least two kinds of OOP:</p>
1 <p>OOP is a complex concept with many aspects to formalize. Moreover, programmers have used the word OOP to denote different things at different times. There are at least two kinds of OOP:</p>
2 <ul><li>OOP, formulated by Alan Kay, the creator of Smalltalk</li>
2 <ul><li>OOP, formulated by Alan Kay, the creator of Smalltalk</li>
3 <li>OOP with polymorphism, inheritance, and encapsulation, described by Grady Butch</li>
3 <li>OOP with polymorphism, inheritance, and encapsulation, described by Grady Butch</li>
4 </ul><p>The modern OOP usually refers to the latter, although the former is alive and well in many languages.</p>
4 </ul><p>The modern OOP usually refers to the latter, although the former is alive and well in many languages.</p>
5 <p>But when we discuss the second kind of OOP, we still emphasize different features in different languages. Something considered a sign of true OOP in some languages is unacceptable in others.</p>
5 <p>But when we discuss the second kind of OOP, we still emphasize different features in different languages. Something considered a sign of true OOP in some languages is unacceptable in others.</p>
6 <p>If we try to generalize somehow and find the most fundamental thing about all OOP languages, we will find the<strong>polymorphism of subtypes</strong>as a common ground.</p>
6 <p>If we try to generalize somehow and find the most fundamental thing about all OOP languages, we will find the<strong>polymorphism of subtypes</strong>as a common ground.</p>
7 <blockquote><p>Polymorphism of subtypes is probably the most important feature of modern object-oriented programming. Benjamin Pierce. Author of Types and Programming Languages</p>
7 <blockquote><p>Polymorphism of subtypes is probably the most important feature of modern object-oriented programming. Benjamin Pierce. Author of Types and Programming Languages</p>
8 </blockquote><p>In this course, we will take an in-depth look at polymorphism. The mechanisms of its implementation, and, most importantly, learn how to apply it correctly. The main topics of this course are:</p>
8 </blockquote><p>In this course, we will take an in-depth look at polymorphism. The mechanisms of its implementation, and, most importantly, learn how to apply it correctly. The main topics of this course are:</p>
9 <ul><li>Types of polymorphism: subtype and parametric</li>
9 <ul><li>Types of polymorphism: subtype and parametric</li>
10 <li>Dispatching and types of dispatching</li>
10 <li>Dispatching and types of dispatching</li>
11 <li>Dependency inversion and injection</li>
11 <li>Dependency inversion and injection</li>
12 <li>DI container</li>
12 <li>DI container</li>
13 <li><a>SOLID</a>(SRP, OCP, LSP, ISR, DIP)</li>
13 <li><a>SOLID</a>(SRP, OCP, LSP, ISR, DIP)</li>
14 </ul><p>In addition, we will get acquainted with the concept of<strong>design patterns</strong>. Let us analyze their influence on code structure and get acquainted with some popular ones:</p>
14 </ul><p>In addition, we will get acquainted with the concept of<strong>design patterns</strong>. Let us analyze their influence on code structure and get acquainted with some popular ones:</p>
15 <ul><li>Null Object</li>
15 <ul><li>Null Object</li>
16 <li>Strategy</li>
16 <li>Strategy</li>
17 <li>Factory</li>
17 <li>Factory</li>
18 </ul><p>Let us talk about when polymorphism is necessary. When it is not, or when it can even be harmful. We will look at several techniques that allow you to get polymorphic behavior without using objects. To do this, we'll look at the different types of dispatching.</p>
18 </ul><p>Let us talk about when polymorphism is necessary. When it is not, or when it can even be harmful. We will look at several techniques that allow you to get polymorphic behavior without using objects. To do this, we'll look at the different types of dispatching.</p>