Description: 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:
- [shape] - First, declare an abstract class Shape,
File list (Check if you may need any files):
1.cpp