Question: 1. Write C++ code (perhaps around 20-30 lines of code) and make it compile and run showing how to use: a. inheritance b. composition C.

1. Write C++ code (perhaps around 20-30 lines of code) and make it compile and run showing how to use: a. inheritance b. composition C. static and dynamic binding d. virtual member function e. pass by reference
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
