This commit is contained in:
Arkadiusz Hypki 2024-11-22 10:43:20 +01:00
parent 40187d0571
commit acdcd6feb9
2 changed files with 5 additions and 6 deletions

View File

@ -10,8 +10,7 @@
namespace lib { namespace lib {
Employee::Employee() { Employee::Employee() {
// TODO Auto-generated constructor stub this->setPesel(0);
} }
Employee::Employee(int pesel) { Employee::Employee(int pesel) {

View File

@ -16,10 +16,10 @@ using namespace std;
int main() { int main() {
std::cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! std::cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
lib::Employee e = lib::Employee(); // lib::Employee e = lib::Employee();
//
if (e.validate()) // if (e.validate())
cout << "pesel of employee" << e.getPesel(); // cout << "pesel of employee" << e.getPesel();
lib::Librarian l = lib::Librarian(); lib::Librarian l = lib::Librarian();
l.setPesel(2000000000); l.setPesel(2000000000);