a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 123|回复: 0

[考试试题] 微软认证考试模拟题2(19)

[复制链接]
发表于 2012-8-3 00:09:22 | 显示全部楼层 |阅读模式
54. C#类 MyClass 下列函数重载是否合法? ( B )5 Y$ I/ T$ d6 {
public void ShowInfo ( int i)
8 W$ x$ Q. E  f/ t$ R2 M{  }  q  u& _* H/ N& P2 V- y8 t) C7 \/ Y
public bool ShowInfo( int i)
* U* k$ f9 F! B2 t( ]  J{ A. 合法7 M& ?$ z1 M. A
B. 不合法
( L* X& G1 s7 F8 U# q" R% b# s; ]55.C#中,下列 myclass 的定义是否合法?(A)) [) i+ i7 {" I. P& R) Q* u
Public interface base1
* f) W9 ^. t8 S: _5 m' Z{}6 ^1 U. L0 D" N0 Z6 s. v' c! h# N
Public class base2. }, M! ?- N- f& z
{}
  F" f: I2 [6 C$ F: O" \" r+ bA 不合法; u: D6 _7 W$ N9 A- |( [
B 合法
9 C. p2 ^, Z8 E* @56. C#中, 下列 MyClass 的定义是否合法? ( B )1 I: a# e6 t: m, p/ h# L
public class Base1 { }3 e" {) u6 M( U- {  _- O; U
public class Base2 { }
( B: a* V$ Q6 a& o5 s/ opublic MyClass : Base1, Base2 { }
% b7 c! Y4 j# d1 {% nA.合法
1 g/ n4 X! j9 ]$ T1 @B. 不合法
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-6-9 14:30 , Processed in 0.327610 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表