diff --git a/ex5-library/src/main.cpp b/ex5-library/src/main.cpp index 44a56b0..71068a5 100644 --- a/ex5-library/src/main.cpp +++ b/ex5-library/src/main.cpp @@ -9,6 +9,7 @@ #include #include "Human.h" #include "Employee.h" +#include "Librarian.h" using namespace std; @@ -20,5 +21,13 @@ int main() { if (e.validate()) cout << "pesel of employee" << e.getPesel(); + lib::Librarian l = lib::Librarian(); + l.setPesel(2000000000); + if (l.validate()) + cout << "pesel of librarian" << l.getPesel(); + l.setPosition("librarian"); + if (l.validate()) + cout << "now it works, pesel of librarian" << l.getPesel(); + return 0; }