i am assuming you mean something like this:
class PathologyResult
{
public:
PathologyResult();
virtual const char *displayResult() = 0;
virtual const PathologyResult *cloneResult() = 0;
};
class PathologyBurnsResult : public PathologyResult
{
public:
PathologyBurnsResult();
const char *displayResult() { return "burns format"; }
const PathologyResult *cloneResult() { return new PathologyBurnsResult; }
};
class PathologyXMLResult : public PathologyResult
{
public:
PathologyXMLResult();
const char *displayResult() { return "XML format"; }
const PathologyResult *cloneResult() { return new PathologyXMLResult; }
};
which is actually drawn from one of my programs. in this case find results for cloneResult() and displayResult() only find for the current class, not for the other classes in this class tree.
the problem i can see here is what happens when you are deriving your class from a core library class that has virtual members? find references is fairly safe, it does not make any changes, but if you want rename or change signature to work then it gets more tricky.
i have already found myself wanting this, so lets see what the developers make of this.
case=1287