Function to show the volume of an object
| 10 | |
| 11 | // Function to show the volume of an object |
| 12 | void showVolume() const |
| 13 | { std::cout << "Box usable volume is " << volume() << std::endl; } |
| 14 | |
| 15 | // Function to calculate the volume of a Box object |
| 16 | virtual double volume(int i = 5) const |