'接口'类型 - .NET独有? [英] The 'Interface' Type - Unique to .NET?
问题描述
在OOP文献中,我们经常阅读界面。 - 一个名词
显然用来表示不同的东西,具体取决于具体情况,可能还有
语言。
..NET但是提供了接口类型 - 作为特定且唯一的类型
(在类,结构,枚举等类型中)。关于
的含义没有含糊之处;它是一个非常具体的东西(一种.NET类型)独立于
上下文。
我的问题:我想知道其他OOP语言,如Smalltalk和Java
也提供了一种接口类型 - 或者如果''interface''是一种独特的类型,那就是
..NET。
谢谢。
Jordan,
Java还提供接口类型,方式非常相似到.NET。
接口的概念首先用于语言Objective C.
问候 - Octavio
"约旦" < A@B.COM> escribióenel mensaje
新闻:************* @ TK2MSFTNGP12.phx.gbl ...在OOP文献中我们读过经常关于界面 - 一个术语,显然用来表示不同的东西,具体取决于上下文和可能的语言。
.NET提供了接口类型 - 作为一个特定和独特的
type(在类,结构,枚举等类型中)。它的含义没有含糊之处;它是一个非常具体的东西(一种.NET类型),独立于
上下文。
我的问题:我想知道其他OOP语言,如Smalltalk和Java
提供一个接口类型也是 - 或者''界面''是.NET独有的类型。
谢谢。
< blockquote>
好吧,它允许一个/ interface /,就像一个类,可以是一个带接口方法的
接口。
但是(在Java中)没有''interface''类型或关键字。
MyClass实现MyInterface
其中MyInterface只是根据java接口规则构建的类。
Octavio Hernandez写道:
Jordan,
Java还提供接口类型,与.NET非常相似的方式。
接口的概念最初用于语言Objective C.
问候 - Octavio
" Jordan" < A@B.COM> escribióenel mensaje
新闻:************* @ TK2MSFTNGP12.phx.gbl ...
在OOP文献中,我们读到了经常关于界面 - 一个术语,显然用来表示不同的东西,具体取决于上下文和可能的语言。
.NET提供了接口类型 - 作为一个特定和独特的
type(在类,结构,枚举等类型中)。它的含义没有含糊之处;它是一个非常具体的东西(一种.NET类型),独立于
上下文。
我的问题:我想知道其他OOP语言,如Smalltalk和Java
提供一个接口也可以输入 - 或者''interface''是.NET独有的类型。
谢谢。
谢谢,John!
我已经离开了Java世界一段时间......
问候 - Octavio
" John Bailo" < JA ***** @ texeme.com> escribióenel mensaje
news:Z7 ******************** @ speakeasy.net ...
好吧,它允许/ interface /作为一个类,可以作为一个界面
与接口方法。
但是(在Java中)没有''接口' '类型或关键字。
MyClass实现MyInterface
其中MyInterface只是一个根据java接口规则构建的类。
Octavio Hernandez写道:Jordan,
Java还以非常类似于.NET的方式提供接口类型。
接口的概念最初用于语言Objective C 。
问候 - Octavio
" Jordan" < A@B.COM> escribióenel mensaje
新闻:************* @ TK2MSFTNGP12.phx.gbl ...
在OOP文献中,我们读到了经常关于界面 - 一个术语,显然用于表示不同的东西,具体取决于上下文和可能的语言。
.NET提供了接口类型 - 作为一个特定和独特的
type(在类,结构,枚举等类型中)。它的含义没有含糊之处;它是一个非常具体的东西(一种.NET类型)独立的上下文。
我的问题:我想知道其他OOP语言,如Smalltalk和
Java提供的接口类型也是 - 或者''界面''是.NET独有的类型。
谢谢。
In OOP literature we read frequently about "interface" - a term which is
apparently used to mean different things depending on context and possibly
language.
..NET however provides for the Interface type - as a specific and unique type
(amongst the class, struct, enum, etc types). There is no ambiguity about
its meaning; it''s a very specific thing (a .NET type) independent of
context.
My question: I am wondering of other OOP languages like Smalltalk and Java
provide an interface type as well - or if ''interface'' is a type unique to
..NET.
Thanks.
Jordan,
Java also offers interface types, in a way very similar to .NET.
The concept of interface was first used in the language Objective C.
Regards - Octavio
"Jordan" <A@B.COM> escribió en el mensaje
news:Of*************@TK2MSFTNGP12.phx.gbl...In OOP literature we read frequently about "interface" - a term which is
apparently used to mean different things depending on context and possibly
language.
.NET however provides for the Interface type - as a specific and unique
type (amongst the class, struct, enum, etc types). There is no ambiguity
about its meaning; it''s a very specific thing (a .NET type) independent of
context.
My question: I am wondering of other OOP languages like Smalltalk and Java
provide an interface type as well - or if ''interface'' is a type unique to
.NET.
Thanks.
Well, it allows for an /interface/ as in a class that can be an
interface with interface methods.
But there is (in Java) no ''interface'' type or keyword.
MyClass implements MyInterface
Where MyInterface is just a class built to the rules of a java interface.
Octavio Hernandez wrote:Jordan,
Java also offers interface types, in a way very similar to .NET.
The concept of interface was first used in the language Objective C.
Regards - Octavio
"Jordan" <A@B.COM> escribió en el mensaje
news:Of*************@TK2MSFTNGP12.phx.gbl...In OOP literature we read frequently about "interface" - a term which is
apparently used to mean different things depending on context and possibly
language.
.NET however provides for the Interface type - as a specific and unique
type (amongst the class, struct, enum, etc types). There is no ambiguity
about its meaning; it''s a very specific thing (a .NET type) independent of
context.
My question: I am wondering of other OOP languages like Smalltalk and Java
provide an interface type as well - or if ''interface'' is a type unique to
.NET.
Thanks.
Thanks, John!
I''ve been out of the Java world for a while...
Regards - Octavio
"John Bailo" <ja*****@texeme.com> escribió en el mensaje
news:Z7********************@speakeasy.net...
Well, it allows for an /interface/ as in a class that can be an interface
with interface methods.
But there is (in Java) no ''interface'' type or keyword.
MyClass implements MyInterface
Where MyInterface is just a class built to the rules of a java interface.
Octavio Hernandez wrote:Jordan,
Java also offers interface types, in a way very similar to .NET.
The concept of interface was first used in the language Objective C.
Regards - Octavio
"Jordan" <A@B.COM> escribió en el mensaje
news:Of*************@TK2MSFTNGP12.phx.gbl...In OOP literature we read frequently about "interface" - a term which is
apparently used to mean different things depending on context and
possibly language.
.NET however provides for the Interface type - as a specific and unique
type (amongst the class, struct, enum, etc types). There is no ambiguity
about its meaning; it''s a very specific thing (a .NET type) independent
of context.
My question: I am wondering of other OOP languages like Smalltalk and
Java provide an interface type as well - or if ''interface'' is a type
unique to .NET.
Thanks.
这篇关于'接口'类型 - .NET独有?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!