Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class BankCustomer {
  2. private name: string;
  3. private secretCode: string;
  4.  
  5. constructor(name: string, secretCode: string) {
  6. this.name = name;
  7. this.secretCode = secretCode;
  8. }
  9.  
  10. getName(): string {
  11. return `The name of this client is ${this.name}`;
  12. }
  13.  
  14. verifyPinInput(input: string): boolean {
  15. return input === this.secretCode;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement