24.1 Class Instance
Write a program that defines an empty class called
MyClass and makes an
instance of
MyClass in the main function.
24.2 Class with Data Members
Write a program that defines a class called
MyClass with three
data members of type
char,
int, and
bool. Make an instance of that class inside the main function.
class MyClass
{
char c;
int x;
bool b;
};
24.3 Class with Member Function
Write a program that defines a class called MyClass with one member function called printmessage(). Define the printmessage() ...