code for inheritance using header file code example
Example: code for inheritance using header file
#include <string>
class Polygon
{
private:
int sides;
public:
Polygon();
Polygon(int p_sides);
virtual int Perimeter() = 0;
virtual double ComputeArea() = 0;
};