Geometric shapes

FIND A SOLUTION AT Academic Writers Bay

Geometric shapes can be modeled as classes. Develop classes for line segments, circles, and rectangles. Each shape object should contain a Turtle object and a color that allow the shape to be drawn in a Turtle graphics window (see Chapter 7 for details). Factor the code for these features (instance variables and methods) into an abstract Shape class. The Circle, Rectangle, and Line classes are all subclasses of Shape. These subclasses include the other information about the specific types of shapes, such as a radius or a corner point and a draw method. Write a script that uses several instances of the different shape classes to draw a house and a stick figure.

YOU MAY ALSO READ ...  Service Marketing – Identify a service type,other than those
Order from Academic Writers Bay
Best Custom Essay Writing Services

QUALITY: 100% ORIGINAL PAPERNO PLAGIARISM – CUSTOM PAPER