/* CS471B Assignment 2: University Instructor: Wade Holst Submitted by: Dan Fraser Student number: 001219229 File Name: DepartmentComponent.h File description: Class definition of Department Component superclass */ #ifndef _DEPARTMENT_COMPONENT_ #define _DEPARTMENT_COMPONENT_ #include #include "Interface.h" class Person; class DepartmentComponent : public Interface { public: // these methods should be overridden by the composite class (Department) // but not by the Leaf class (Person) virtual void add(Person *) { cout << "warning, component dropped"<< endl; } virtual void del(Person *) { cout << "warning, component dropped"<< endl; } }; #endif