class A
{
public:
virtual void show()
cout<<"Hello"<<endl;
}
};
class B: public A
void show()
cout<<"India"<<endl;
int main() {
B *b=new B;
b->show();
A *b1=new B;
b1->show();
Output:
India
Hello
This comment has been removed by the author.
India india output h isska?
This comment has been removed by the author.
ReplyDeleteIndia india output h isska?
ReplyDelete