1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex8.1/main.cpp

33 lines
666 B
C++

#include <iostream>
#include "Employee.hh"
#include "Manager.hh"
int main() {
Employee wouter("Wouter", 0);
Employee ivo("Ivo", 0);
Manager stan("Stan", 0);
Manager jo("Jo", 0);
Manager frank("Frank", 0);
stan.addSubordinate(wouter);
stan.addSubordinate(ivo);
frank.addSubordinate(stan); // This does not give a problem because stan is also of type Employee
frank.addSubordinate(jo);
// Print the Business Cards
frank.businessCard();
std::cout << std::endl;
jo.businessCard();
std::cout << std::endl;
stan.businessCard();
std::cout << std::endl;
wouter.businessCard();
std::cout << std::endl;
ivo.businessCard();
std::cout << std::endl;
}