Skip to the content.

Home / cs-notes / Design / Design Patterns / Creational Patterns / Others / Prototype

@startuml

class Client {

}

interface Prototype {
    + clone(): Prototype
}

class PrototypeA {
    + clone(): Prototype
}

class PrototypeB {
    + clone(): Prototype
}

Client -> Prototype
Prototype <|.. PrototypeA
Prototype <|.. PrototypeB

@enduml