Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Latest commit

 

History

History
19 lines (12 loc) · 338 Bytes

Prototype.md

File metadata and controls

19 lines (12 loc) · 338 Bytes

Prototype

Type: Creational Pattern

Structure:

In my Codes(Role - Classes):

  • Client: MazePrototypeFactory
  • Prototype: Room, Maze, etc..

Key Word

  • CLONE

Key Point

  • To implement clone() method! Use deep clone!

Java has its own clone() in Object, just override it.