MCPcopy Create free account
hub / github.com/JerePrograma/FullStackEgg / Carta

Class Carta

Etapa3Relaciones/Ejercicio3/src/entidad/Carta.java:19–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17package entidad;
18
19public class Carta {
20
21 private int numero;
22 private String palo;
23
24 public Carta() {
25 }
26
27 public Carta(int numero, String palo) {
28 this.numero = numero;
29 this.palo = palo;
30 }
31
32 public int getNumero() {
33 return numero;
34 }
35
36 public void setNumero(int numero) {
37 this.numero = numero;
38 }
39
40 public String getPalo() {
41 return palo;
42 }
43
44 public void setPalo(String palo) {
45 this.palo = palo;
46 }
47
48 @Override
49 public String toString() {
50 return numero + " de " + palo;
51 }
52
53}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected