#include <iostream> #define PI 3.14 using namespace std; class Circle { float radius; public: void getRadius(); float area(); void showRadius(); }; void Circle :: getRadius() { cout << "Enter Radius ::: "; cin >> radius; } float Circle :: area() { float ar; ar = PI * radius * radius; return ar; } void Circle :: showRadius() { cout << " Radius : " << radius; } int main() { Circle c1; c1.getRadius(); c1.showRadius(); float a = c1.area(); cout << " Area of Circle : " << a; return 0; }