previous | start | next

Outline of Triangle Class

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

public int getArea()
{
. . .
}

private int width;
}

previous | start | next