Question: using c++ Please create a class Circle that - uses template type as data type for private data member radius. overrides operator>> to take a
using c++ Please create a class "Circle" that -
uses template type as data type for private data member radius.
overrides "operator>>" to take a value from user input and assign it to radius', when taking a Circle object as the right operand. (friend function)
overrides "operator<<" to display radius of the circle object and its area, when taking a Circle object as the right operand.(friend function)
overrides binary "operator+" that takes an int parameter to increment the Circle object's radius by the int argument value. (member function)
Please put some test code in main() to make sure everything you have defined works.
You may try to put int and double as the radius data type.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
