Que in Interface c#编程语言 [英] Que in Interface c# programming languauge

查看:64
本文介绍了Que in Interface c#编程语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下哪项不能正确完成句子?

一个接口.....



1-强制类实现它来声明所有接口方法
$ b当没有默认实现继承时,$ b 2用于代替抽象类

3 - 无法实例化

4-可以实例化< br $> b $ b



是第4号答案吧?或者不是

Which of following does not complete the sentence correctly ?
An Interface.....

1- force classes that implement it to declare all the interfaces method
2-is used in place of an abstract class when there is no default implementation to inherit
3-can''t be instantiated
4- can be instantiated


is the answer no.4 right ? or not

推荐答案

不,你是不对的。接口本身不能实例化。可以实例化类,并且可以完整地实现接口。
No, you are incorrect. An interface cannot in itself be instantiated. Classes can be instantiated, and can implement interfaces in their entirety.


这篇关于Que in Interface c#编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆