A
Alex
I have a doubt. Given a function like this:
class bar {
public:
virtual void foo(int i = 0) = 0;
};
when implementing this virtual function, will the above enforce the default
parameter in all implementations?
class der : public bar
{
void foo(int i) {}
};
or should I again specify "int i = 0"?
Thanks.
class bar {
public:
virtual void foo(int i = 0) = 0;
};
when implementing this virtual function, will the above enforce the default
parameter in all implementations?
class der : public bar
{
void foo(int i) {}
};
or should I again specify "int i = 0"?
Thanks.