#include <iostream>
using namespace std;
class name
{
public:
virtual void show()
{
cout<<"P.Aswini";
}
};
class cls:public name
{
public:
void show()
{
cout<<"\nII BCA B";
}
};
int main()
{
name *p,o;
cls s;
p=&o;
p->show();
s.show();
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: