Skip to content

Instantly share code, notes, and snippets.

@alibahaaa
Created January 18, 2023 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alibahaaa/adfc94978d2eb492abadb0bed2eac44b to your computer and use it in GitHub Desktop.
Save alibahaaa/adfc94978d2eb492abadb0bed2eac44b to your computer and use it in GitHub Desktop.
class ConcretePrototype : Prototype {
var attribute: String = ""
override fun clone(): Prototype {
val clone = ConcretePrototype()
clone.attribute = this.attribute
return clone
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment