CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SQUARE_H
#define SQUARE_H
//creating class 'square' 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 square {
public:
void getLength();
float setLength(float l);
square();
square(float l);
float getArea();
};
#endif // SQUARE_H
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run