To Classes
To Classes
To Classes
Introduction
to Classes
Public Members
int Rectangle::setWidth(double w)
{
width = w;
}
Rectangle(double, double);
Rectangle r;
delete r;
InventoryItem inventory[40];
InventoryItem inventory[3] =
{ "Hammer", "Wrench", "Pliers" };
inventory[2].setUnits(30);
cout << inventory[2].getUnits();
- width : double
- length : double
Constructors
Destructor