@startuml

abstract class Animal {
    # String name
    Animal(String name)
    + {abstract} void makeSound() //abstrakt
    + void sleep()
}

class Dog {
    + void makeSound()
}

Animal <|-- Dog: extends

@enduml