yes.
Let’s write the class definition for
Circle
. Circle
should have its radius stored in a private member variable. Also write the constructor for Circle
, which takes a radius as a parameter, in addition to the public member function calculateArea
, which returns the area of the Circle
. Make sure to include the private
and public
keywords! Use 3.14 for the value of pi. Put the necessary blocks of code in the correct order.