SHARE
TWEET

Untitled

a guest Oct 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top