No, di android il libro ancora non ne ha mai parlato.. per farti capire meglio ti posto il listato di esempio:
public class Rectangle implements TwoDShape
{
protected int width;
protected int heigth;
protected Point2D upperLeftCoords;
public Rectangle()
{
width=heigth=1;
upperLeftCoords=new Point2D(0,0);
}
public Rectangle(Point2D upperLeftCoords,int width,int heigth)
{
this.upperLeftCoords=upperLeftCoords;
this.heigth=heigth;
this.width=width;
}
protected void finalize(){}
public int getWidth(){return width;}
public int getHeigth(){return heigth;}
public Point2D getCoords(){return upperLeftCoords;}
public int area(){return width*heigth;}
public int perimeter(){return (width+heigth)*2;}
public void draw(){System.out.println("Disegno del rettangolo");}
public String toString()
{
return "RETTANGOLO { "+upperLeftCoords+" --> Larghezza: "+width+", Altezza: "+heigth+" }";
}
}