Include the classes constructed for exercise 5a in a


(General Math)

a. Create a base class named Point consisting of x and y data members representing point coordinates. From this class, derive a class named Circle with another data member named radius. For this derived class, the x and y data members represent a circle's center coordinates. The member functions of the Point class should consist of a constructor, an area() function that returns 0, and a distance() function that returns the distance between two points, (x1, y1) and (x2, y2), where

2072_1767e986-a381-417d-8319-95d6acc618ac.png

b. Include the classes constructed for Exercise 5a in a working C++ program. Have your program call all the member functions in each class. In addition, call the base class distance() function with two Circle objects and explain the result this function returns.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Include the classes constructed for exercise 5a in a
Reference No:- TGS02195430

Expected delivery within 24 Hours