#include using namespace std; class Shape { protected: int width, height; public: Shape( int a = 0, int b = 0){ width = a; height = b; } int area() { cout << "Parent class area :" <area(); // store the address of Triangle shape = &tri; // call triangle area. shape->area(); return 0; }