public class Triangle { public Triangle(int aWidth) { width = aWidth; } public int getArea() { ... } private int width; }