SHARE
TWEET

Untitled

a guest May 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export class Person {
  2.  
  3.     private name: string;
  4.     private age: number;
  5.  
  6.     public getName(): string {
  7.         return this.name;
  8.     }
  9.  
  10.     public setName(name: string): void {
  11.         this.name = name;
  12.     }
  13.  
  14.     public getAge(): number {
  15.         return this.age;
  16.     }
  17.  
  18.     public setAge(age: number): void {
  19.         this.age = age;
  20.     }
  21. }
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
 
Top