Define a class CatalogEntry to represent a catalog entry. Each entry has an integer item number, a description that is a string, and two doubles ? a wholesale price and a retail price. Include a default constructor and the prototype of a constructor that initializes all components.

What will be an ideal response?

```
class CatalogEntry {
public:
CatalogEntry () {}
CatalogEntry ( int, const string&, double, double );
private:
int itemNumber;
string description;
double wholesalePrice;
double retailPrice;
};
]
```

Computer Science & Information Technology

You might also like to view...

The new and delete operators provide a mechanism for enlarging and shrinking arrays.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The process of creating an object from a class is called ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology