22 lines
738 B
Java
Raw Normal View History

2023-01-30 04:26:30 +01:00
package com.bib.essensbestellungsverwaltung;
2023-02-01 22:52:04 +01:00
/**
* one constructor is used to create new worker the other is used to create
* existing worker from database
*
2023-02-01 22:52:04 +01:00
* @author Malte Schulze Hobeling
*/
public class Worker extends User {
2023-01-30 04:26:30 +01:00
public Worker(long id, String name, String firstname, String password, String email, Address address) {
super(id, name, firstname, password, email, address);
}
2023-01-30 04:26:30 +01:00
public Worker(String name, String firstname, String password, String email, Address address) {
super(name, firstname, password, email, address);
}
public Worker(User user) {
super(user.getId(), user.getName(), user.getFirstname(), user.getPassword(), user.getEmail(), user.getAddress());
}
2023-01-30 04:26:30 +01:00
}