You have five classes: Shape, Triangle, Circle, Square, and Rectangle. The class Shape has a method area(). This method does nothing. Override the method in all subclasses. Overridden methods should return an area of a particular figure. Use class fields for this.
The area of a triangle is where is the height of the triangle, is the base of the triangle.
The area of a circle is where is the radius of the circle. For use the Math.PI constant.
The area of a square is where is the length of the side of the square.
The area of a rectangle is where is the width of the rectangle and the height of the rectangle.