Write a program for a graphics system that has classes for rectangles, squares, circles and triangles. Each of these must be derived from a base class, Figure. You must include member functions of your choice that output a message telling what function has been called and what the class of the calling object is. Create two instances within your program:
1. Do the class definitions using no virtual functions.
2. Make the base class member functions virtual.