'Added another call for validate();'
This commit is contained in:
parent
2dc167c4fe
commit
40187d0571
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user