how do i create a virtual == operator. I've tried the following but
it's incorrect...
class Interface
{
...
public:
virtual bool operator==(cons t Interface& rhs)const=0;
};
class MyClass : public Interface
{
...
public:
bool operator==(cons t MyClass& rhs)const;
};
thanks
it's incorrect...
class Interface
{
...
public:
virtual bool operator==(cons t Interface& rhs)const=0;
};
class MyClass : public Interface
{
...
public:
bool operator==(cons t MyClass& rhs)const;
};
thanks
Comment