Click here to Skip to main content
15,894,291 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 12:04
ricardojb1-Apr-06 12:04 
NewsRe: Question about polymorphism.. Pin
leppie1-Apr-06 16:40
leppie1-Apr-06 16:40 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 16:43
ricardojb1-Apr-06 16:43 
GeneralRe: Question about polymorphism.. Pin
leppie1-Apr-06 17:00
leppie1-Apr-06 17:00 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 17:03
ricardojb1-Apr-06 17:03 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 17:13
ricardojb1-Apr-06 17:13 
GeneralRe: Question about polymorphism.. Pin
leppie1-Apr-06 23:26
leppie1-Apr-06 23:26 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 17:01
ricardojb1-Apr-06 17:01 
No I didn't, try it.

what he wants to do is having the compiler enforcing it and the code I posted will just do it.

The interface will require the class to implement the method, normally that wouldn't be enough to enforce to rewrite it because it's already implemented by a parent class, but because it's protected and not public or internal, the child class won't see it and therefore the compiler requires the implementation of the interface.

I didn't say it but it should be obvious that both methods (in the interface and the abstract class) need to have the exact same signature, that is, same name, same return type and same parameters.
QuestionHelp me please.. Pin
KORCARI1-Apr-06 5:38
KORCARI1-Apr-06 5:38 
AnswerRe: Help me please.. Pin
ricardojb1-Apr-06 11:43
ricardojb1-Apr-06 11:43 
QuestionC# & Sound Function Pin
hung_ngole1-Apr-06 5:08
hung_ngole1-Apr-06 5:08 
QuestionSpell checker for microsoft word Pin
iinfoque1-Apr-06 4:00
iinfoque1-Apr-06 4:00 
AnswerRe: Communicating with a USB Device Pin
leppie1-Apr-06 2:55
leppie1-Apr-06 2:55 
QuestionSudoku 4 Mobile phone Pin
t4ure4n1-Apr-06 1:43
t4ure4n1-Apr-06 1:43 
QuestionDisplaying 0\0 Pin
thepersonof1-Apr-06 1:42
thepersonof1-Apr-06 1:42 
AnswerRe: Displaying 0\0 Pin
Nicholas Butler1-Apr-06 1:45
sitebuilderNicholas Butler1-Apr-06 1:45 
GeneralRe: Displaying 0\0 Pin
thepersonof1-Apr-06 2:29
thepersonof1-Apr-06 2:29 
GeneralRe: Displaying 0\0 Pin
leppie1-Apr-06 3:02
leppie1-Apr-06 3:02 
AnswerRe: Displaying 0\0 Pin
Guffa1-Apr-06 4:40
Guffa1-Apr-06 4:40 
GeneralRe: Displaying 0\0 Pin
thepersonof1-Apr-06 4:59
thepersonof1-Apr-06 4:59 
GeneralRe: Displaying 0\0 Pin
thepersonof1-Apr-06 6:42
thepersonof1-Apr-06 6:42 
QuestionInconsistant accesibility Pin
thepersonof1-Apr-06 0:37
thepersonof1-Apr-06 0:37 
Questioncreat a find tool in text editor? Pin
abdelhameed8131-Mar-06 23:56
abdelhameed8131-Mar-06 23:56 
Questionhow to use flash in c# ? Pin
hdv21231-Mar-06 23:43
hdv21231-Mar-06 23:43 
AnswerRe: how to use flash in c# ? Pin
Robert M Greene1-Apr-06 15:01
Robert M Greene1-Apr-06 15:01 

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.