Here is what I have:
class Abstract
{
public:
virtual bool isThis(Abstract*);
};
class FileType:public Abstract
{
public:
bool isThis(FileType* ptr)
{
return false;
}
};
And this is what Visual Studio sais:

Thanks a lot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, if you do not provide code for the function in
Abstract, you have to make it virtual pure (adding= 0at the end). Then, the signature of the function in the derived class has to be the same (i.e. accepts anAbstract*parameter instead ofFileType*).I strongly suggest you to read some C++ manuals before. It will save you a lot of trouble.