VB中的OOP和属性 [英] OOP and properties in VB

查看:118
本文介绍了VB中的OOP和属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



-

你好


当使用OOP属性时,VB6有Get / Let和VB.net有Readonly /和

....


这些OOP概念是使用Property还是仅特定于Visual Basic

属性,


使用此属性,C ++也可以使用它或只使用Visual C ++。?

解决方案

John ,
在dotNet中,所有用托管代码制作的程序都可以使用混合的类来生成

,这些类在DLL(libary)中,就像它们在哪里制作的一样相同的语言。


在语言本身中创建和使用属性的方式是特定的

这些语言。


这是你的问题吗?


Cor


" john andrew" < jo ******** @ discussion.microsoft.com>


-
你好

使用OOP属性,VB6有Get / Let和VB.net有Readonly /和

这些OOP概念与属性使用或仅特定于Visual Basic
属性,

有了这个属性,C ++也可以使用它,或者只使用Visual C ++。?






因此VB.net(和vb6)中的OOP的某些功能不是标准的OOP功能

但Micosoft附加组件......所以所有OOP语言都必须有一定数量的加载项

在OOP一般概念中找不到。


Cor Ligthert写道:

John,

在dotNet中,托管代码中的所有程序都可以使用混合的类和/或DLL中的类(libary) )好像它们是由相同语言制作的。

属性在语言本身中创建和使用的方式对于这些语言是特定的。

是吗你的问题?

  john andrew" < jo ******** @ discussion.microsoft.com>


-
你好

使用OOP属性,VB6有Get / Let和VB.net有Readonly /和

这些OOP概念与属性使用或仅特定于Visual Basic
属性,

使用这个属性,C ++也可以使用它,或者只使用Visual C ++。?




>因此,VB.net(和vb6)中OOP的某些功能不是标准的OOP功能

,而是Micosoft附加功能......所以所有OOP语言都必须有一定数量的附加功能
在OOP一般概念中找不到。



你为VB6写的是真的,不适用于VBNet。我不知道我有什么写的b
写道,无论如何,你让我很好奇,我的句子让我感到好意。

你做出这样的结论。所有网络语言都遵循

OOP的一般概念。 VB6没有。


VBNet和VB6除了最常见的VB关键字之外没有那么多,因为我不知道为什么你连接他们。


Cor



--
hello

When using properties with OOP, VB6 had Get/Let and VB.net has Readonly/and
....

Are theses OOP concepts with Property use or only specific to Visual Basic
properties,

With this property use does C++ have this as well or just Visual C++.?

解决方案

John,

In dotNet all programs made in managed code can use mixed the classes made
and which are in a DLL (libary) as if they where made by the same languages.

The way properties are created and used in the languages itself is specific
to those languages.

Is that your question?

Cor

"john andrew" <jo********@discussions.microsoft.com>


--
hello

When using properties with OOP, VB6 had Get/Let and VB.net has
Readonly/and
...

Are theses OOP concepts with Property use or only specific to Visual Basic
properties,

With this property use does C++ have this as well or just Visual C++.?





So some features of OOP in VB.net (and vb6) are not standard OOP features
but Micosoft add-ons...so all OOP languages must have an amount of add-ons
not found in OOP general concepts.

"Cor Ligthert" wrote:

John,

In dotNet all programs made in managed code can use mixed the classes made
and which are in a DLL (libary) as if they where made by the same languages.

The way properties are created and used in the languages itself is specific
to those languages.

Is that your question?

Cor

"john andrew" <jo********@discussions.microsoft.com>


--
hello

When using properties with OOP, VB6 had Get/Let and VB.net has
Readonly/and
...

Are theses OOP concepts with Property use or only specific to Visual Basic
properties,

With this property use does C++ have this as well or just Visual C++.?




> So some features of OOP in VB.net (and vb6) are not standard OOP features

but Micosoft add-ons...so all OOP languages must have an amount of add-ons
not found in OOP general concepts.


What you write for VB6 is true, not for VBNet. I had not the idea I have
written that in any way, you make me curious, what sentence of my did let
you make that conclussion. All Net languages follow the general concept of
OOP. VB6 does not.

VBNet and VB6 have beside the most classic VB keywords not so much in
common, therefore I don''t understand why you connect them.

Cor


这篇关于VB中的OOP和属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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