Once an object is constructed, methods can be invoked on it (i.e., it can be
passed messages).
The following code calls the default
constructor for a new ItemInfo
object and then asks for its (not yet specified) price and color:
ItemInfo *item = new ItemInfo;
cout << "The item's price is " << (*item).getPrice() << endl;
cout << "The item's color is " << (*item).getColor() << endl;