Zapato - public class Zapatocfw Elas Hernndez Ramrez...

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

View Full Document Right Arrow Icon
public class Zapato{ p /* Elías Hernández Ramírez * A00798214 */ public int tamaño; public double precio; public String marca; p //Constructores public Zapato(){ tamaño=0; precio=0; marca="genérica"; } public Zapato(int t, double p, String m){ tamaño = t; precio = p; marca = m; } //GETs public int getTamaño(){ return tamaño; } public double getPrecio(){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online