Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BankCustomer {
- private name: string;
- private secretCode: string;
- constructor(name: string, secretCode: string) {
- this.name = name;
- this.secretCode = secretCode;
- }
- getName(): string {
- return `The name of this client is ${this.name}`;
- }
- verifyPinInput(input: string): boolean {
- return input === this.secretCode;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement