Java Developing Class Hierarchy For Geometric Figures

$20.00$10.001235 reads

Question

Class Hierarchy

Design, build and test a class hierarchy to represent geometric figures including circles, triangles, squares, rectangles, polygons, and hexagons. Implement just minimum number of methods per each class to reflect a distinctive characteristic of a particular geometric figure. In particular, each of the class must implement a toString method. Every class corresponding to a geometric figure must provide a constructor that takes a Scanner object as a parameter. For example:
public Square(Scanner keyboard)

Your program must first store the geometric figures in a list, and then display every figure with its attributes. In the output you should indicate the hierarchy of the classes.

Summary

The question belongs to Computer Science and it discusses about designing, building and testing a class hierarchy to represent geometric figures which include circles, triangles, squares, rectangles, polygons, etc.

Total Word Count NA

Add to Cart