Description: First, declare an abstract class Shape, on this basis, derived classes Rectangle and Circle, the two have GetArea () and GetPerim () function, GetArea used to calculate the object' s size, GetPerim used to calculate the object perimeter. The above types of packaging and the preparation of test programs.
To Search:
- [1] - Declare an abstract class Shape, on this
File list (Check if you may need any files):
shape.cpp