class objects c++ code example
Example 1: classes c++
class Rectangle {
int width, height;
public:
void set_values (int,int);
int area (void);
} rect;
Example 2: class cpp
class Exemple
{
private:
/* data */
public:
Exemple(); //Constructor
~Exemple(); //Destructor
};