// instructor.h     Instructor_C class, inherits from Person_C
// P.Conrad for CISC220 06J

#ifndef INSTRUCTOR_H
#define INSTRUCTOR_H

#include "person.h"


class Instructor_C: public Person_C
{
 public:
  Instructor_C(const char * const theFname,
	       const char * const theLname,
	       int theId,
	       const char * const theDept)
    : Person_C(theFname,theLname,theId)
    {
      allocateAndCopy(dept,theDept);
    }
  
  const char * const getDept() const { return dept; }

  void setDept(const char * const theDept)
    { delete [] dept; allocateAndCopy(dept,theDept); }

  
  // big three

  Instructor_C(const Instructor_C & orig);
  Instructor_C & operator =(const Instructor_C & right);
  ~Instructor_C();

  void print(std::ostream & out = std::cout) const;

 private:
  char * dept;

};


#endif // INSTRUCTOR_H
