Polymorphie (EN)

Concept

The ability to handle different object types through a common interface

Architecture

classDiagram   class Animal {     +name: string     +makeSound()   }   class Dog {     +breed: string     +makeSound()     +bark()   }   class Cat {     +color: string     +makeSound()     +meow()   }   Animal <|-- Dog   Animal <|-- Cat 
Quelle: AI Generated