using problem

C

Chameleon

How can I use the 'using' to fix this problem?
If impossible with 'using', what I can do?
----------------------------------------------
class A
{
public:
virtual char *read(int size) = 0;
char *read(char *str) { return 0; }
};

class B : public A
{
public:
virtual char *read(int size) { return 0; }
};

int main()
{
B b;
b.read("throws an error");
return 0;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top