Inheritance

5 articles
Template Method Pattern A behavioral design pattern that defines the skeleton of an algorithm in a base class, letting subclasses …Liskov Substitution Principle (LSP) A SOLID design principle stating that objects of a supertype should be replaceable with objects of a subtype …Inheritance and Polymorphism Core object-oriented programming mechanisms: inheritance creates class hierarchies for code reuse, while …Composition Over Inheritance A design principle that favors object composition over class inheritance for code reuse, resulting in more …Object-Oriented Programming (OOP) Classes, objects, inheritance, encapsulation, and polymorphism - how OOP concepts apply directly to AI …