Object Oriented Programming Lab 01 Topic Covered: Classes and Objects
Object Oriented Programming Lab 01 Topic Covered: Classes and Objects
Lab 01
Topic Covered: Classes and Objects
Q1. Make a Circle class.
a. It has three attributes radius, the x and the y coordinates of
its center of double data type.
b. Make void set(double, double, double) functions to set x, y and
radius.
c. Make void get() functions to get x, y and radius from user.
d. Make void show() function to display x , y coordinates and radius
of a circle.
e. Make double area() function, and a double circumference()
function to calculate and return area and circumference.
f. Call these functions in main() to test their working.
This is the output of program