问题 单项选择题

下面关于虚函数的描述,错误的是

A.在成员函数声明的前面加上virtual修饰,就可把该函数声明为虚函数

B.基类中说明了虚函数后,派生类中对应的函数也必须说明为虚函数

C.虚函数可以是另一个类的友元函数,但不能是静态成员函数

D.基类中说明的纯虚函数在其任何派生类中都必须实现

答案

参考答案:B

解析: 基类中说明的虚函数,在派生类中自然就是虚函数,对于纯虚函数必须在后面继承的派生类中给出具体的实现;静态成员函数不能进行动态联编,所以虚函数不能是静态的。

选择题
单项选择题

Egyptian wine has an extensive history within the history of Egyptian civilization. Grapes were not (1) to the landscape of Egypt, rather the vines themselves are (2) to have been imported from the Phoenicians, (3) the actual origins remain in (4) . What is known, is that (5) the third millennium BC, Egyptian kings of the first (6) had extensive wine cellars, and wine was used extensively in the temple ceremonies. The main (7) of wine in Egypt, took place between the king, nobles, and the priests in temple ceremonies, and is (8) by numerous painted relief’s, and other (9) evidence. The vineyards of ancient Egypt, were quite different from the modern methods of wine making today. (10) viticulture ( or wine making), ceased to (11) an exclusively ceremonial purpose, the Egyptians began to experiment with simple structures for their vines to train on, (12) found a way to train their vines so they were easy low (13) bushes, and found ways for the soil to (14) more moisture for the vines. Egyptian wine making experiments included the use of different wine presses, adding heat to the must ( the grape juice ready for fermentation) (15) make the wine sweet, and differences in vat types and materials. The (16) finished product of wine, was poured through a cloth filter, and then into earthenware jars, (17) they would be sealed with natural tar and left to (18) . The Egyptians kept accurate records of their vintages, and (19) of their wines, each jar of wine was clearly (20) with it’s own vintage, and quality.

1()

A.born

B.native

C.grown

D.planted