Created
April 21, 2022 07:27
-
-
Save htdangkhoa/036be682d9bf8bdfd25a192fe50cf3ea 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
export interface AbstractProductA { | |
usefulFunctionA(): string; | |
} | |
export class ConcreteProductA1 implements AbstractProductA { | |
public usefulFunctionA(): string { | |
return "The result of the product A1."; | |
} | |
} | |
export class ConcreteProductA2 implements AbstractProductA { | |
public usefulFunctionA(): string { | |
return "The result of the product A2."; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment