We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AndQuery和OrQuery都继承了BinaryQuery的rep纯虚函数,由抽象基类的概念定义,这两个类应该是抽象基类把?
The text was updated successfully, but these errors were encountered:
《C++ Primer 5th》中文版
含有(或者未经覆盖直接继承)纯虚函数的类是抽象基类。p541
BinaryQuery不定义eval,而是继承了该纯虚函数。因此,BinaryQuery也是一个抽象基类,我们不能创建BinaryQuery类型的对象。 p570
class AndQuery:public BinaryQuery{ //p570 //... //具体的类:AndQuery继承了rep并且定义了其他纯虚函数 QueryResult eval(const TextQuery&) };
Sorry, something went wrong.
No branches or pull requests
AndQuery和OrQuery都继承了BinaryQuery的rep纯虚函数,由抽象基类的概念定义,这两个类应该是抽象基类把?
The text was updated successfully, but these errors were encountered: