My class declaration is below
Code:
class Base{
public:
void showdata(double);
};
class Derived : public Base{
public:
inline double F(double x)
{
return exp(-x) + x*x;
}
Code:
void Base::showdata(double a)
{
std::cout<<"The value of the Function : " << F(a);
}
Code:
int main()
{
//Base obj;
Derived obj;
obj.F(1.0);
return 0;
}
Quote:
error C3861: 'F': identifier not found
So how to solve this problem.
With Warm Regards
sdmahapatra