ARectangle rec = new ARectangle(1.0,3.0);
rec.getArea();


Won't print out anything. Your getArea() method returns a double to the main but since you are not displaying it or assigning it to...