I am new to Inheritance..
#include<iostream>
using namespace std;
class base
{ public:
void show()
{
//do something here
}
};
class derive:public base
{ public:
void show(int n,int m)
{
//do something
}};
int main()
{
derive D;
D.show();
D.show(4,5);
}
So the compiler is giving error that: no matching function for call to ‘derive::show()