A School Directory Application
Package to illustrate classes, subclasses, polymorphism,cout<<<overloading, and virtual functions
Faculty.h
Go to the documentation of this file.
1 
29 #ifndef FACULTY_H
30 #define FACULTY_H
31 
32 #include "Entry.h"
33 
34 // Directory entries specific to faculty
35 class Faculty : public Entry {
36  // Faculty have four special fields
37 
38  public:
39 
52  Faculty (std::string first, std::string last, std::string addr, std::string room,
53  int ext, std::string department, int yr);
54 
66  virtual std::ostream& print (std::ostream &os) const ;
67 
68  // Faculty have four special fields
69 private:
70  std::string office ;
71  int extension ;
72  std::string dept ;
73  int firstYear ;
74 
75 };
76 
77 #endif
Definition: Entry.h:26
Definition: Faculty.h:35
Faculty(std::string first, std::string last, std::string addr, std::string room, int ext, std::string department, int yr)
Definition: Faculty.cpp:44
virtual std::ostream & print(std::ostream &os) const
Definition: Faculty.cpp:65