70.rerurn true;
$ K3 m% W# \1 `8 B& @. A}
% o( b, ^1 E# _/ b(STATread)
( i, o1 P" [5 [' |Static void Main(string() args);{) \+ T1 Z0 V: D
Class x=new Class1();
8 |/ z8 b+ W e3 \& _$ \If(false & x.printInfo())
+ f" m, b& C7 e9 r1 OA 无输出
3 i8 `& L5 K% \7 k l3 U, lB Main
" b7 b) \2 x4 g) w0 V8 t4 [C printInfo/ j1 h9 B) M' q' T. X- E5 s
D printInfo
+ x" e7 m, Z4 k# E2 VMain5 \* @% P; z$ o$ `( s5 Q1 o
解释:&,&&,|,||9 [5 i6 Q/ _; d7 q
71.//代码
/ K: R8 k' ?* n$ ~8 ? j6 n7 r( u}9 a* B0 t4 d$ ? `+ c, g8 X
现在需要编写代码在 ShowInfornation 中将 MyClass 当前对象的 date 赋值为 100.正确的语句为:(D)
5 h$ n) Y* D1 q0 ?A relf.date=100;
2 H% u3 Y1 g3 x+ [, {B date=100;1 v- k2 } k2 m( {
C ne.date=100;
6 H2 i5 A" O" [* ~4 T; i$ h% N; X/ ZD this.date=100;
' t: w8 G3 Y5 Q, K/ Z, g72.在 C#中,下列类的定义是否合法?(A)+ l( _( t, F2 @# [1 Q- M+ i& W
public class Tom:Jerry {}/ H- V) D1 G( p- l4 c1 x
public class Jerry:Tom {}& h) g$ C* `2 P5 p
A 不合法/ @ h3 J: k" x) ~, o
B 合法 |