Hi,
I try to call a function implemented in the Baseclass from the
DerivedClass.
When i compiled it using VC++, the following Error was thrown
"illegal Call to non-static member BaseClass::function() "
But, it gets compiled with g++ in Solaris.
What could be the problem.
================
class BaseClass
{
void function() { cout<<"Inside Base Class"<<endl; } }
class DerivedClass : public::BaseClass
{
void function();
}
DerivedClass::function()
{
cout<<"Inside Derived Class"<<endl;
BaseClass::function();
}
==========
Thanks in advance.
Arun.
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus