One of the fundamental principles of OOP is polymorphism, where objects of different classes can be treated as instances of a common superclass. Abstract classes play a key role in achieving this polymorphism by defining method signatures that derived classes must implement. It facilitates generic...
Yes, Saturnus has classes, of course, but we forbid inheritance by design, which does not eliminate at all polymorphism (see below). class Person { // Fields (which are optional btw), are declared as variables: let name = "unnamed"; // Methods, like normal functions, but remember that...