Click here to Skip to main content
15,902,275 members
Home / Discussions / C#
   

C#

 
GeneralRe: HELP! Windows Services Pin
Luc Pattyn8-Jul-10 23:09
sitebuilderLuc Pattyn8-Jul-10 23:09 
Questionpolymorphism Pin
netJP12L8-Jul-10 5:27
netJP12L8-Jul-10 5:27 
AnswerRe: polymorphism Pin
Abhinav S8-Jul-10 5:37
Abhinav S8-Jul-10 5:37 
GeneralRe: polymorphism Pin
netJP12L8-Jul-10 5:49
netJP12L8-Jul-10 5:49 
GeneralRe: polymorphism Pin
Ennis Ray Lynch, Jr.8-Jul-10 6:02
Ennis Ray Lynch, Jr.8-Jul-10 6:02 
AnswerRe: polymorphism Pin
Keith Barrow8-Jul-10 6:30
professionalKeith Barrow8-Jul-10 6:30 
GeneralRe: polymorphism Pin
netJP12L8-Jul-10 6:36
netJP12L8-Jul-10 6:36 
GeneralRe: polymorphism Pin
Keith Barrow8-Jul-10 7:44
professionalKeith Barrow8-Jul-10 7:44 
Behaviour and type are two things, otherwise we'd call them both behaviour or both type [edit] however, types exhibit behaviours. I think there has been some language based confusion here to clarify:


class A
{
  public virtual void Write()
  {
     Console.Writeline ("Base Write Method");
  }
}

class B : A
{
  public override void Write()
  {
     Console.Writeline ("Class B's Write Method");
  }
}

class C : A
{
  
}

class Foo
{
  new A().Write(); // Outputs "Base Write Method"
  new B().Write(); // Outputs "Class B's Write Method"  as base method is overridden
  new C().Write(); // Outputs "Base Write Method" as the base method isn't overridden 
}


As per my original post, you can override the default behaviour, but it isn't necessary.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

QuestionDetecting Button Clicks In Outlook Pin
euroazn8-Jul-10 4:28
euroazn8-Jul-10 4:28 
QuestionGet Parent form name in custom control Pin
kartheesh8-Jul-10 2:36
kartheesh8-Jul-10 2:36 
AnswerRe: Get Parent form name in custom control Pin
Ennis Ray Lynch, Jr.8-Jul-10 4:26
Ennis Ray Lynch, Jr.8-Jul-10 4:26 
AnswerRe: Get Parent form name in custom control [modified] Pin
kartheesh8-Jul-10 22:31
kartheesh8-Jul-10 22:31 
AnswerRe: Get Parent form name in custom control Pin
William Winner8-Jul-10 8:04
William Winner8-Jul-10 8:04 
AnswerRe: Get Parent form name in custom control Pin
Roger Wright8-Jul-10 16:56
professionalRoger Wright8-Jul-10 16:56 
QuestionProcess in C# (Open exe) Pin
ShafiqA8-Jul-10 0:36
ShafiqA8-Jul-10 0:36 
AnswerRe: Process in C# (Open exe) Pin
monstale8-Jul-10 0:53
monstale8-Jul-10 0:53 
AnswerRe: Process in C# (Open exe) Pin
Peace ON8-Jul-10 0:59
Peace ON8-Jul-10 0:59 
GeneralRe: Process in C# (Open exe) Pin
ShafiqA8-Jul-10 1:13
ShafiqA8-Jul-10 1:13 
GeneralRe: Process in C# (Open exe) Pin
Peace ON8-Jul-10 1:38
Peace ON8-Jul-10 1:38 
GeneralRe: Process in C# (Open exe) Pin
ShafiqA8-Jul-10 1:53
ShafiqA8-Jul-10 1:53 
GeneralRe: Process in C# (Open exe) Pin
Peace ON8-Jul-10 3:02
Peace ON8-Jul-10 3:02 
AnswerRe: Process in C# (Open exe) Pin
Calla8-Jul-10 3:19
Calla8-Jul-10 3:19 
QuestionHow to remove character from string Pin
M Riaz Bashir7-Jul-10 22:09
M Riaz Bashir7-Jul-10 22:09 
AnswerRe: How to remove character from string Pin
R. Giskard Reventlov7-Jul-10 22:19
R. Giskard Reventlov7-Jul-10 22:19 
AnswerRe: How to remove character from string Pin
Calla7-Jul-10 22:22
Calla7-Jul-10 22:22 

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.