CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CIRCLE_H
#define CIRCLE_H
//creating class 'circle' and defining member functions
//with a 'public' access specifier meaning that
//members are accessible from outside class and anywhere
//within the scope of class object
class circle {
public:
void setRadius();
float getRadius(float r);
circle();
circle(float r);
float getArea(float r);
};
#endif // CIRCLE_H
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run