Question: To create your TextCodec class, add the following access modifier, fields, constructor and methods. In addition, add the line #define BOOK at the top of

To create your TextCodec class, add the following access modifier, fields, constructor and methods.
In addition, add the line #define BOOK at the top of Book.cpp
For example:
#define BOOK
class Book
{
// fields of this class
// constructors of this class
// methods of this class
}
Your Book class must have two member variable (field), which is:
a string, which holds a title
a string, which holds an author
You can name the field any name you want.
Your book will have a default constructor and an overloaded control. By default, the default constructor should:
Set the title to "Moby-Dick"
Set the author to "Herman Melville"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!