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

Class Dni

Etapa3Relaciones/Guia/src/eje/entidad/Dni.java:3–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package eje.entidad;
2
3public class Dni {
4
5 private char serie;
6 private int numero;
7
8 // Constructor sin argumentos
9 public Dni() {
10 }
11
12 // Constructor con argumentos
13 public Dni(char serie, int numero) {
14 this.serie = serie;
15 this.numero = numero;
16 }
17
18 // Métodos getter y setter
19 public char getSerie() {
20 return serie;
21 }
22
23 public void setSerie(char serie) {
24 this.serie = serie;
25 }
26
27 public int getNumero() {
28 return numero;
29 }
30
31 public void setNumero(int numero) {
32 this.numero = numero;
33 }
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected