Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. class Adjunct : public Faculty, public PerCourse, public PartTime {
  2. public:
  3. // constructors and destructor
  4. Adjunct() : Faculty(), PerCourse(), PartTime() { _maxCourses = "NoCourses"; }
  5.  
  6. Adjunct(string firstName, string lastName, string address, unsigned _IDNumber,
  7. string SSN, string department, unsigned feePerCourse, unsigned partTime);
  8.  
  9. // NTT(const Faculty&); // copy constructor
  10.  
  11. ~Adjunt() { cout << "Adjunct destructor called for " << getFirstName() + " " + getLastName() << endl; }
  12.  
  13. void output(ostream& out) const { out << *this; }
  14.  
  15. // accessor functions
  16. unsigned getMaxCourses() const { return _maxCourses; }
  17.  
  18. friend ostream& operator<< (ostream&, const Adjunct&);
  19. Adjunct ():
  20.  
  21. private:
  22. unsigned _maxCourses;
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement