Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package model;
- import java.io.Serializable;
- public abstract class User implements Serializable{
- private int id;
- public static int k=0;
- private String username;
- private String password;
- protected Tipi tipi;
- public User(String username, String password,Tipi type){
- this.username = username;
- this.password = password;
- tipi=type;
- k++;
- }
- /**
- * @return the username
- */
- public String getUsername() {
- return username;
- }
- /**
- * @param username the username to set
- */
- public void setUsername(String username) {
- this.username = username;
- }
- /**
- * @return the password
- */
- public String getPassword() {
- return password;
- }
- /**
- * @param password the password to set
- */
- public void setPassword(String password) {
- this.password = password;
- }
- /**
- * @return the tipi
- */
- public Tipi getTipi() {
- return tipi;
- }
- /**
- * @param tipi the tipi to set
- * @return
- * @return
- */
- public abstract void setTipi(Tipi tipi);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement