Click here to Skip to main content
16,005,149 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionEnumerator Class help Pin
barney_19728-Oct-07 5:47
barney_19728-Oct-07 5:47 
AnswerRe: Enumerator Class help Pin
Dave Kreskowiak8-Oct-07 6:43
mveDave Kreskowiak8-Oct-07 6:43 
AnswerRe: Enumerator Class help Pin
GuyThiebaut8-Oct-07 8:31
professionalGuyThiebaut8-Oct-07 8:31 
GeneralRe: Enumerator Class help Pin
barney_19728-Oct-07 21:52
barney_19728-Oct-07 21:52 
GeneralRe: Enumerator Class help Pin
barney_19728-Oct-07 22:03
barney_19728-Oct-07 22:03 
GeneralRe: Enumerator Class help Pin
GuyThiebaut8-Oct-07 22:26
professionalGuyThiebaut8-Oct-07 22:26 
GeneralRe: Enumerator Class help Pin
barney_19728-Oct-07 23:24
barney_19728-Oct-07 23:24 
GeneralRe: Enumerator Class help Pin
GuyThiebaut8-Oct-07 23:37
professionalGuyThiebaut8-Oct-07 23:37 
Lets say you have an enum called SpeedWarning that applies to Aircraft and F1:

The Aircraft enums may be as follows

SpeedWarning:
TooSlowStall = 120
TooFastManeuver = 350

Whereas the F1 car may have

SpeedWarning:
TooFastDryCorner = 150
TooFastWetCorner = 80

So both Aircraft and F1 car have SpeedWarning as an Enum however they both have different contents and values.

So in this case you basically want to represent different applications of the enum SpeedWarning depending on the class they are associated with(Aircraft or F1).
If SpeedWarning was defined as an enum in one place you would lose the polymorphism properties of OOP as you would have to create something akin to SpeedWarningAircraft and SpeedWarningF1 enums.

Regards

Guy




You always pass failure on the way to success.

GeneralRe: Enumerator Class help Pin
barney_19729-Oct-07 0:12
barney_19729-Oct-07 0:12 
GeneralRe: Enumerator Class help Pin
GuyThiebaut9-Oct-07 0:30
professionalGuyThiebaut9-Oct-07 0:30 
Questionfinger prints Pin
shri508-Oct-07 5:25
shri508-Oct-07 5:25 
AnswerRe: finger prints Pin
Dave Kreskowiak8-Oct-07 6:44
mveDave Kreskowiak8-Oct-07 6:44 
AnswerRe: finger prints Pin
Christian Graus8-Oct-07 13:43
protectorChristian Graus8-Oct-07 13:43 
Questionhi i want to make my software as trial version Pin
shri508-Oct-07 5:23
shri508-Oct-07 5:23 
AnswerRe: hi i want to make my software as trial version Pin
ESTAN8-Oct-07 5:45
ESTAN8-Oct-07 5:45 
QuestionDeveloping and distributing licenced software Pin
steve_rm8-Oct-07 4:39
steve_rm8-Oct-07 4:39 
AnswerRe: Developing and distributing licenced software Pin
Dave Kreskowiak8-Oct-07 5:01
mveDave Kreskowiak8-Oct-07 5:01 
GeneralRe: Developing and distributing licenced software Pin
Christian Graus8-Oct-07 13:51
protectorChristian Graus8-Oct-07 13:51 
GeneralRe: Developing and distributing licenced software Pin
Dave Kreskowiak8-Oct-07 13:57
mveDave Kreskowiak8-Oct-07 13:57 
AnswerRe: Developing and distributing licenced software Pin
Vimalsoft(Pty) Ltd8-Oct-07 5:21
professionalVimalsoft(Pty) Ltd8-Oct-07 5:21 
AnswerRe: Developing and distributing licenced software Pin
GuyThiebaut8-Oct-07 8:42
professionalGuyThiebaut8-Oct-07 8:42 
AnswerRe: Developing and distributing licenced software Pin
Christian Graus8-Oct-07 13:50
protectorChristian Graus8-Oct-07 13:50 
QuestionID card mag stripe encoding Pin
Monte at Oaklawn8-Oct-07 4:36
Monte at Oaklawn8-Oct-07 4:36 
AnswerRe: ID card mag stripe encoding Pin
Dave Kreskowiak8-Oct-07 4:59
mveDave Kreskowiak8-Oct-07 4:59 
GeneralRe: ID card mag stripe encoding Pin
Monte at Oaklawn10-Oct-07 9:30
Monte at Oaklawn10-Oct-07 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.