c++ classes operationexample
Example 1: classes c++
class Rectangle {
int width, height;
public:
void set_values (int,int);
int area (void);
} rect;
Example 2: classes c++
class class_name {
access_specifier_1:
member1;
access_specifier_2:
member2;
...
} object_names;