Habitacion

Habitacion - r public String getDueo(){ return dueo;} 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 getDueo(){ return dueo;} r public void setLongitud(int largo){ longitud = largo;} l public void setAnchura(int ancho){ anchura = ancho;} a public void setDueo(String d){ dueo = d;} d public double calculaArea(){ return anchura * Math.PI * Math.pow(longitud, 2);} r }...
View Full Document

This note was uploaded on 10/29/2009 for the course ITC TC-1002 taught by Professor X during the Spring '09 term at ITESM.

Ask a homework question - tutors are online