Good Day,
This thread is quite old, notice the flashing date? Please try not to post on threads that are really old. But in response to your question:
// This is a user-defined type. What about the book do you want to define? Example: define the size of the book. Then a function to calculate the size of the book could look like this:How can I define the class "BOOK" in c++
class Book
{
double width
double height
double thickness
double volume ( )
{
return width * height * thickness
}
};




Reply With Quote