In this program we will clear the concept of polymorphism, that how a single function can work for all classes.
The code is given below
//Code Starts
#include<iostream>
#include<conio.h>
using namespace std;
class apply{
public:
virtual void brak()=0; // Creating pure virtual...
John Johnson
“ First, solve the problem. Then, write the code. ”