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; } } }