By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,018 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

Is here any fast method let me type properties more fast?

P: n/a
ABC
I am always to write clases which has properties, is here any best tools or
method let me typing properties codes more fast?
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"ABC" <abc.abc.com> wrote in message
news:O7*************@TK2MSFTNGP11.phx.gbl...
I am always to write clases which has properties


I assume you mean, you are writing a set of classes that all have the
same properties (at least to start with).
There are two ways of doing this - Inheritance or Interfaces.

Using Inheritance:

Class Person
Public Property Name() As String
End Property
End Class

Class Employee
Inherits Person
End Class

Note that Employee class does not declare a Name property - but
this still works ...

Private oMe as New Employee
MsgBox( oMe.Name )

This is because the Name property is inherited from the Person class.
Using Interfaces:

Interface NameableThing
Property Name() as String
End Interface

Class Employee2
Implements NameableThing

Private Property EmployeeName() as String _
Implements NameableThing.Name

End Property
End Class

Dim oMe As NameableThing _
= New Employee2
MsgBox( Oops.Name )

HTH,
Phill W.
Nov 21 '05 #2

P: n/a
Hi,

http://www.axtools.com/news/latest_c...m#cs_for_vsnet

http://www.devexpress.com/Products/NET/Coderush/

Ken
------------------
"ABC" <abc.abc.com> wrote in message
news:O7*************@TK2MSFTNGP11.phx.gbl...
I am always to write clases which has properties, is here any best tools or
method let me typing properties codes more fast?

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.