//////////////////////////////////////////// 2nd Sub class of Security
| 94 | ///////////////////////////////////////////////// |
| 95 | // 2nd Sub class of Security |
| 96 | class Owner : public Security { |
| 97 | public: |
| 98 | // Constructor for User's sign up |
| 99 | Owner(string name, string tell, string login, string password) : Security(name, tell, login, password) { } |
| 100 | // get Name of User |
| 101 | string getName() { |
| 102 | return name; |
| 103 | } |
| 104 | |
| 105 | // get Tell of User |
| 106 | string getTell() { |
| 107 | return tell; |
| 108 | } |
| 109 | |
| 110 | // get Login of User |
| 111 | string getLogin() { |
| 112 | return login; |
| 113 | } |
| 114 | |
| 115 | // get Password of User |
| 116 | string getPassword() { |
| 117 | return password; |
| 118 | } |
| 119 | |
| 120 | // Display Info |
| 121 | void Display() { |
| 122 | cout << "\t\tName : " << name << endl; |
| 123 | cout << "\t\tTell : " << tell << endl; |
| 124 | cout << "\t\tLogin : " << login << endl; |
| 125 | cout << "\t\tPassword : " << password << endl; |
| 126 | } |
| 127 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected