Advertisement
Cabana_Mario_Ariel_F

Usuario modelo tp1

Apr 8th, 2022 (edited)
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. package modelotp1;
  2.  
  3. public class Usuarios extends Personas{
  4.     //Atributos
  5.     private String nickname,id,email,telefono;
  6.     //Metodos de acceso para id y email
  7.     String getId(){return id;}
  8.     String getEmail(){return email;}
  9.     void setId(String i){id=i;}
  10.     void setEmail(String e){email=e;}
  11.     void changeNickname(String newname) {nickname=newname;}
  12.     void updateinformation() {}
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement