{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Habitacion - r public String getDueño return dueño r...

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

View Full Document Right Arrow Icon
public class Habitacion{ p public int longitud; public int anchura; public String dueño; p public Habitacion(){ longitud = 5; anchura = 5; dueño = "nadie";} d public Habitacion(int l, int a, String d){ longitud = l; anchura = a; dueño = d;} d public int getLongitud(){ return longitud;} r public int getAnchura(){ return anchura;}
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: r public String getDueño(){ return dueño;} r public void setLongitud(int largo){ longitud = largo;} l public void setAnchura(int ancho){ anchura = ancho;} a public void setDueño(String d){ dueño = d;} d public double calculaArea(){ return anchura * Math.PI * Math.pow(longitud, 2);} r }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online