题目内容

己知3个类O、P和Q,类O中定义了一个私有方法F1、一个公有方法F2和一个受保护的方法F3:类P和类Q是类O的派生类,其继承方式如下所示: class P:protected O …; class Q:public O …; 关于方法F1的描述中正确的是 (58) ;关于方法F2韵描述中正确的是 (59) ;在关于方法F3的描述中正确的是 (60) 。

A. 类O、P和Q的对象都可以访问方法F3
B. 类O、P和Q的对象都不可以访问方法F3
C. 类O和Q的对象都可以访问方法F3,但类P的对象不能访问方法F3
D. 类P和Q的对象都可以访问方法F3,但类Q的对象不能访问方法F3

查看答案
更多问题

What will the woman do on Thursday

A. She is going to the cinema with the man.
B. She is going to do her English homework at home.
C. She is going to stay in the library.

What does the man mean

A. He will stay for supper.
B. He likes to but he has no time.
C. He doesn’t want to stay for supper.

计算机必须做好系统软件的备份,有力保证系统的正常运行。( )

A. 对
B. 错

Supermarket’s New StrategyOne supermarket in Tokyo has managed to solve the problems of shoplifting, mistakes by cashiers, and long lines of customers waiting at the cash registers. It is Japan’s advanced computer technology that has come (51) with the answers.Shoppers at an OK supermarket on the outskirts of the city now push a cart (52) a plastic card chained to it and buy from glass cases where the goods are on display. The plastic card has a magnetic number imprinted on it. Each customer carries his or her own card, which is (53) at the exit. While shopping, the customer pushes the card into a slot beside whichever items are wanted and pushes a button or two. The glass covered vending machines are connected to a computer that (54) the price of every item in the store. Prices of every purchase are added up automatically. (55) she has finished shopping, the customer hands her card to a cashier who (56) it into the register. A second later the (57) pops out.Shoplifting is physically impossible. Once you touch a commodity the computer remembers it no matter how you hide it or (58) you eat it on the spot.A cashier at the OK supermarket is now able to work 15 times faster than her (59) at a conventional supermarket. Only two cashiers, (60) , are required at the store, which (61) 2,500 separate items. One man is enough to keep the vending machine filled, because whenever the stock for a certain commodity is (62) to run out, a red lamp in the computer-room (63) him.But there are disadvantages too: a customer cannot (64) his or her mind about a purchase. Once touched, the item cannot be put back. The customer must (65) a cashier with it first and get a refund later. There are also no fresh vegetables or fish on sale—everything is prepackaged. 54()。

A. shouts
B. raises
C. knows
D. puts

答案查题题库