Click here to Skip to main content
15,924,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to find who last logged on to a PC over the network Pin
Dave Kreskowiak8-Oct-07 6:42
mveDave Kreskowiak8-Oct-07 6:42 
GeneralRe: How to find who last logged on to a PC over the network Pin
DJH18-Oct-07 6:48
DJH18-Oct-07 6:48 
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 
Hi,
Polymorphism is a concept in OOP where the same methods, properties etc can exist accross different objects and in essence behave differently.

For instance two classes called Aircraft and F1Car may have a method called Increase Throttle. The method for aircraft would increase the flow of air over the wings and cause lift whereas on the F1Car increasing the throttle would in effect cause the opposite to lift.

So you can have a method called Increase Throttle that exists across multiple objects and which has a different behaviour.

When it comes to programming you could even inherit the Aircraft methods, if you really wanted to, for the F1Car and override Increase Throttle to make it decrease lift.

The beauty of this is that, for instance with enums, you can declare the same methods or properties across multiple classes and they will behave accordingly - so no need to declare them once only and if you need a similar method for another class create something with a slightly different name (which is what you have do do in the area of procedural programming).

I hope this explains why understanding polymorphism helps.

Regards

Guy



You always pass failure on the way to success.

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 
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 

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.