A School Directory Application
Package to illustrate classes, subclasses, polymorphism,cout<<<overloading, and virtual functions
Staff.h
Go to the documentation of this file.
1 
28 #ifndef STAFF_H
29 #define STAFF_H
30 
31 #include "Entry.h"
32 
44 class Staff : public Entry {
45  public:
46  Staff (std::string first, std::string last, std::string addr,
47  std::string room, int ext, std::string ttl) ;
48 
60  std::ostream& print (std::ostream &os) const ;
61 
62 // Staff have two special fields
63  private:
64  std::string office ;
65  int extension ;
66  std::string title ;
67 
68 };
69 
70 #endif
Definition: Entry.h:26
Definition: Staff.h:44
std::ostream & print(std::ostream &os) const
Definition: Staff.cpp:51
Staff(std::string first, std::string last, std::string addr, std::string room, int ext, std::string ttl)
Definition: Staff.cpp:31