J
jlopes
There seems to bet no diff between a vitual method and an inheirited method.
class A_Base
{
public:
virtual void filter(){ /* some code */ }
};
class D_of_A_Base : public A_Base
{
public:
void filter(){ /* could have used the filter of the base class */ }
};
class AnotherBase
{
public:
void filter(){ /* some code */ }
};
class D_of_A_Base : public AnotherBase
{
public:
filter(){ /* could have used the filter of the base class */ }
};
class A_Base
{
public:
virtual void filter(){ /* some code */ }
};
class D_of_A_Base : public A_Base
{
public:
void filter(){ /* could have used the filter of the base class */ }
};
class AnotherBase
{
public:
void filter(){ /* some code */ }
};
class D_of_A_Base : public AnotherBase
{
public:
filter(){ /* could have used the filter of the base class */ }
};