Hello please keep in mind that I am starting in the world of programming.
I have this error with the builders (not suitable constructor found for), in the Scale and the Employee one
Escala Es = new Escala(ediEs, antiguedadLaboralEs,nivelEstudiosEs);
Empleado Em = new Empleado(runEm, nombreEm, appatEm, apmatEm, direccionEm);
Comuna C = new Comuna(numeroC, nombreC);
mostrarDatosEscala(Es);
mostrarDatosEmpleado(Em);
mostrarDatosComuna(C);
}
public static void mostrarDatosEscala(Escala E){
System.out.print(E.obtenerDatos());
}
public static void mostrarDatosEmpleado(Empleado Em){
System.out.print(Em.obtenerDatos());
}
public static void mostrarDatosComuna(Comuna C){
System.out.print(C.obtenerDatos());
}
This is the scale constructor
public Escala(){
edi=0;
antiguedadLaboral=0;
nivelEstudios=0;
empleado = new Empleado();
}
public Escala(int edi, byte antiguedadLaboral, byte nivelEstudios, Empleado empleado) {
this.edi = edi;
this.antiguedadLaboral = antiguedadLaboral;
this.nivelEstudios = nivelEstudios;
this.empleado = empleado;
}
and this one of Employee
public Empleado(){
rut="";
nombre="";
appat="";
apmat="";
direccion="";
Comuna= new Comuna();
}
public Empleado(String rut, String nombre, String appat, String apmat, String direccion) {
this.rut = rut;
this.nombre = nombre;
this.appat = appat;
this.apmat = apmat;
this.direccion = direccion;
this.Comuna = Comuna;
}