/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package westfield; /** * * @author TOSHIBA */ public class roomCarpet { private roomDimension roomDimension; private int cost; public roomCarpet(int length, int width) { void setcost(int cost) { this.cost = cost; } public int getcost() { return cost; } roomDimension = new roomDimension(length, width); } public int totalCost() { return roomDimension.roomArea() * cost; } }
i don't know what is the problem with it there is mistake in geters ! or setter ?! and the last return type