make class in c++ code example
Example: c++ classes
class MyClass {
// The class
public:
// Access specifier
int myNum; //
Attribute (int variable)
string myString; //
Attribute (string variable)
};
class MyClass {
// The class
public:
// Access specifier
int myNum; //
Attribute (int variable)
string myString; //
Attribute (string variable)
};