'Added another call for validate();'

This commit is contained in:
Arkadiusz Hypki 2024-11-22 10:01:33 +01:00
parent 2dc167c4fe
commit 40187d0571

View File

@ -9,6 +9,7 @@
#include <iostream>
#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;
}