English: UML diagram of a abstract class named Pet with two classes; Cat and Dog which inherits from Pet.
The abstract class Pet declares an abstract method called Speak which needs to be implemented by any class that inherits from the abstract class.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse
@startuml
abstract class Pet
{
+{abstract} Speak()
}
class Cat extends Pet
{
+Speak()
}
class Dog extends Pet
{
+Speak()
}
note left of Cat::Speak()
Cat says meow!
end note
note right of Dog::Speak()
Dog says woof!
end note
@enduml
Captions
Add a one-line explanation of what this file represents