|
-
September 30th, 2010, 08:16 AM
#1
Calling functions in Pure virtual class
Hi, Folks,
I have pure virtual class questions:
class B
{
public:
virtual double foo(int a) = 0;
virtual double foo(int a, int b) =0;
}
class D : public B
{
public:
virtual double foo(int a)
{
doube c = foo(a, 1.0);
return c;
}
}
Compiling this gives error:
C2661: D:foo no overloaded function takes 2 arguments.
Does anyone understand what is going on?
Thanks for your help!
CR
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|