Created
April 21, 2022 07:28
-
-
Save htdangkhoa/bc5bf32d378692897b4691c61f406724 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 AbstractProductB { | |
usefulFunctionB(): string; | |
} | |
export class ConcreteProductB1 implements AbstractProductB { | |
public usefulFunctionB(): string { | |
return "The result of the product B1."; | |
} | |
} | |
export class ConcreteProductB2 implements AbstractProductB { | |
public usefulFunctionB(): string { | |
return "The result of the product B2."; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment