Created
June 14, 2024 11:03
-
-
Save Caballerog/d5f87b2c571cf76d8da5c8f5116ade79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Prototype } from "./prototype"; | |
export class ConcretePrototype2 implements Prototype { | |
operation() { | |
console.log("Operation from ConcretePrototype2"); | |
} | |
clone(): Prototype { | |
return new ConcretePrototype2(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment