Rectangulos.java 456 Bytes
Newer Older
willgonzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
public class Rectangulos implements FormasInterface{
    String color;
    float longitud;
    float anchura;
    public void Rectangulos(float longitud, float anchura, float color){
        this.longitud=longitud;
        this.anchura=anchura;
        this.color=color;
    }
    public boolean cartelesRectangulo(String texto){
        if(texto.length()>=longitud){
            return true;
        }else{
            return false;
        }
    }
    
}