Questions 23 to 26 are based on the passages you have just heard.
A. Locks and keys.
B. Circles and keyholes.
C. Keys and keyholes.
D. Sleeves and keys.
查看答案
24.
A. It is easy for you to show your own feeling.
B. Other people can accept your admiration.
C. It is easy for other people to realize their fate.
D. Other people can know your feelings easily.
25.
A poor man.
B. A sailor
C. A handsome guy.
D. A millionaire.
26.
A. It was made for the lovers who felt deeply in love.
B. It was made for the girl and her wide dress.
C. It was made for the couple who wanted to sit closely.
D. It was made for someone who liked the S-shape very much.
【编程分析】本程序主要考查类的定义。第一步:首先定义一个Circle类,其中包括半径属性radius和构造方法Circle(int r),并定义求面积area()和周长perimeter()的方法。第二步:在main()方法中实例化Circle对象c1和c2,并调用area()和perimeter()方法,从而求出面积和周长。