Skip to content

Instantly share code, notes, and snippets.

@htdangkhoa
Created April 21, 2022 07:27
Show Gist options
  • Save htdangkhoa/036be682d9bf8bdfd25a192fe50cf3ea to your computer and use it in GitHub Desktop.
Save htdangkhoa/036be682d9bf8bdfd25a192fe50cf3ea to your computer and use it in GitHub Desktop.
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