-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConstructores.java
More file actions
50 lines (37 loc) · 992 Bytes
/
Constructores.java
File metadata and controls
50 lines (37 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package paquete;
//Creado Por: Jean Bernuy
public class Constructores {
int idUsuario;
String usuario;
String password;
/*public Constructores(){
idUsuario= 1015;
usuario="[email protected]";
password="jean2";
mostrar();
}*/
public Constructores(){}
public Constructores(int idUsuario){
this.idUsuario=idUsuario;
usuario="[email protected]";
password="jean2";
mostrar();
}
public Constructores(int idUsuario, String usuario){
this.idUsuario=idUsuario;
this.usuario=usuario;
password="jean2";
mostrar();
}
public void mostrar(){
System.out.println(idUsuario);
System.out.println(usuario);
System.out.println(password);
System.out.println();
}
public static void main(String[] args) {
Constructores t=new Constructores();
Constructores t2=new Constructores(1120);
}
}