473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
2 925
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: GS | last post by:
The stdint.h header definition mentions five integer categories, 1) exact width, eg., int32_t 2) at least as wide as, eg., int_least32_t 3) as fast as possible but at least as wide as, eg.,...
5
by: ABC | last post by:
I am always to write clases which has properties, is there any best tools or method let me typing properties codes more fast?
7
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service...
9
by: VK | last post by:
<OT>I am finishing TransModal 0.1 so planning to move it from alpha to beta stage.<OT> Besides that I am planning to write an introductory to inheritance schema currently used in Javascript...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.