Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 是否可以扩展多个抽象类?_C#_Visual Studio_Extends_Implements - Fatal编程技术网

C# 是否可以扩展多个抽象类?

C# 是否可以扩展多个抽象类?,c#,visual-studio,extends,implements,C#,Visual Studio,Extends,Implements,是否可以扩展多个抽象类 我正在尝试用C语言转换java字节码库# 我在最初的java字节码库中发现它扩展了2个接口,或者在我的例子中是抽象类(因为它有变量) 在C#中似乎不起作用 指令得到了完美的扩展。。但是JConstantTypes不起作用 当然,解决办法是我必须这样使用它。。 JConstantTypes.Variable在您要从中扩展的类中否,C#只有一个继承 但是,您可以只使用接口,因为这基本上是一样的: class JClassParser : IInstructions, ICon

是否可以扩展多个抽象类

我正在尝试用C语言转换java字节码库#

我在最初的java字节码库中发现它扩展了2个接口,或者在我的例子中是抽象类(因为它有变量)

在C#中似乎不起作用

指令得到了完美的扩展。。但是JConstantTypes不起作用

当然,解决办法是我必须这样使用它。。 JConstantTypes.Variable在您要从中扩展的类中

否,C#只有一个继承

但是,您可以只使用接口,因为这基本上是一样的:

class JClassParser : IInstructions, IConstantTypes
{
    // implementations of the above interfaces
}

“我现在又受了大麻的影响,所以我没有逻辑思维”——这就是你的问题!嘿,那跟这事没关系。。它实际上帮助我更高效我是个新手:SSo。。。你是说吸毒的新手和不吸毒的新手没有太大区别?在我的非专业观点中,这是我在这个网站上看到的最愚蠢的评论线索。因为“有可能扩展一个以上的抽象类吗?”这是一个有效问题的语法。什么是用户界面?什么是指令?IConstantTypes?这些只是接口吗?它们是打字错误:)不管怎样,C#中的接口和Java中的接口完全一样。@Mike Caron。。。提示:不要给巨魔喂食。@mjv:我的答案有一个合法的打字错误。我不是在玩巨魔,我这里真的有困难。
class JClassParser : IInstructions, IConstantTypes
{
    // implementations of the above interfaces
}