first commit
This commit is contained in:
54
Lab3/person.h
Normal file
54
Lab3/person.h
Normal file
@@ -0,0 +1,54 @@
|
||||
//person.h
|
||||
|
||||
#ifndef __PERSON_H__
|
||||
|
||||
#define __PERSON_H__
|
||||
|
||||
#include "police.h"
|
||||
|
||||
#include "atm.h"
|
||||
|
||||
|
||||
|
||||
#include "cashcard.h"
|
||||
|
||||
#include "bank.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
class Person {
|
||||
|
||||
private:
|
||||
|
||||
Name myName;
|
||||
|
||||
int myAge;
|
||||
|
||||
double cash;
|
||||
|
||||
Passport *myPass;
|
||||
|
||||
Cashcard *myCard;
|
||||
|
||||
public:
|
||||
|
||||
Person(Name &N, int &age):myName(N) { //Constructor
|
||||
|
||||
myPass=NULL;
|
||||
|
||||
myCard=NULL;
|
||||
|
||||
cash=0;
|
||||
|
||||
myAge=age;
|
||||
|
||||
}
|
||||
|
||||
~Person(){}
|
||||
|
||||
const Name &getName() { return myName; }
|
||||
|
||||
int getPassport(Police &myStation) {
|
||||
|
||||
Reference in New Issue
Block a user