Empleado - sueldo=s;} s public double getSueldo(){ return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Empleado extends Persona{ p public double sueldo; p public Empleado(){ super(); sueldo=100000;} s public Empleado(String nom, int ed, double es, double s){ super(nom, ed, es); // El orden depende del constructor
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: sueldo=s;} s public double getSueldo(){ return sueldo;} r public void setSueldo(int s){ sueldo = s;} s public String toString(){ return super.diceNombre()+", mi sueldo es de: $"+sueldo;} r }...
View Full Document

Ask a homework question - tutors are online