classDiagram class Person { - name: String - health: int + takeDamage(int amount) + receiveHealing(int amount) } class Fighter { - attackPower: int + fight(Person target) } class Doctor { - healingPower: int + heal(Person patient) } Person <|-- Fighter Person <|-- Doctor