How To Code Inheritance and Polymorphism in C
C++ Code -------------- #include <iostream> #include <cstdlib> using namespace std; class base { public: base(); virtual ~base(); virtual void draw(); void initialize(); private: int value; }; base::base() { cout << "base\n"; } base::~base(){ cout << "~base\n"; } void base::draw(){ cout << "base draw\n"; } void base::initialize() { cout << "initialize\n"; } class child : public base { public: child(); ~child(); virtual void draw(); private: int number; }; child::child(){ cout << "child\n"; } child::~child() { cout << "~child\n"; } void child::draw() { cout << " child draw\n"; } int main(in...