Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change A Property Within The Foreach Loop Pin
harold aptroot6-Feb-10 5:12
harold aptroot6-Feb-10 5:12 
AnswerRe: Change A Property Within The Foreach Loop Pin
#realJSOP6-Feb-10 5:44
professional#realJSOP6-Feb-10 5:44 
GeneralRe: Change A Property Within The Foreach Loop Pin
OriginalGriff6-Feb-10 9:00
mveOriginalGriff6-Feb-10 9:00 
AnswerRe: Change A Property Within The Foreach Loop Pin
AspDotNetDev6-Feb-10 19:18
protectorAspDotNetDev6-Feb-10 19:18 
Questionforms & files [modified] Pin
jojoba20106-Feb-10 2:31
jojoba20106-Feb-10 2:31 
QuestionMulti dimension Array Not Working [Solved] Pin
Wamuti6-Feb-10 2:07
Wamuti6-Feb-10 2:07 
AnswerRe: Multi dimension Array Not Working Pin
harold aptroot6-Feb-10 2:18
harold aptroot6-Feb-10 2:18 
QuestionProblem with Interface? Pin
mdrizwan_15-Feb-10 23:13
mdrizwan_15-Feb-10 23:13 
Hello,
I wanna know If i declare function with same name, in interface and base class. and inherit this with Drived class. and call this function with drived obj.What Does it throws an error or not?

If not how its differentiates which function to call?

and how to call both the function?

EG:
<br />
       Public Interface  Iface<br />
       {<br />
           Void Display();<br />
       }<br />
       <br />
       Public Class Base<br />
       {<br />
            Public Void Display()<br />
            {<br />
                 Console.Readline("This is Base Class Method");<br />
            } <br />
       }<br />
       <br />
       Public Class Derived : Base, Iface<br />
       {<br />
            Public Void Display()<br />
            {<br />
                 Console.Readline("This is Interface Method");<br />
            } <br />
       }<br />
<br />
       Main()<br />
       {<br />
            Derived Dobj = new Derived(); <br />
            Dobj.Display();<br />
            Console.Readline();<br />
       }<br />


Which function is called?
AnswerRe: Problem with Interface? Pin
Eddy Vluggen5-Feb-10 23:24
professionalEddy Vluggen5-Feb-10 23:24 
GeneralRe: Problem with Interface? Pin
OriginalGriff5-Feb-10 23:29
mveOriginalGriff5-Feb-10 23:29 
GeneralRe: Problem with Interface? Pin
Eddy Vluggen5-Feb-10 23:38
professionalEddy Vluggen5-Feb-10 23:38 
AnswerRe: Problem with Interface? Pin
OriginalGriff5-Feb-10 23:28
mveOriginalGriff5-Feb-10 23:28 
AnswerRe: Problem with Interface? Pin
Md. Marufuzzaman6-Feb-10 0:14
professionalMd. Marufuzzaman6-Feb-10 0:14 
AnswerRe: Problem with Interface? Pin
Luc Pattyn6-Feb-10 1:49
sitebuilderLuc Pattyn6-Feb-10 1:49 
AnswerRe: Problem with Interface? Pin
#realJSOP6-Feb-10 2:03
professional#realJSOP6-Feb-10 2:03 
Questionc# Pin
bahar35-Feb-10 23:07
bahar35-Feb-10 23:07 
QuestionRe: c# Pin
Eddy Vluggen5-Feb-10 23:17
professionalEddy Vluggen5-Feb-10 23:17 
AnswerRe: c# Pin
OriginalGriff5-Feb-10 23:32
mveOriginalGriff5-Feb-10 23:32 
AnswerRe: c# Pin
mdrizwan_15-Feb-10 23:33
mdrizwan_15-Feb-10 23:33 
AnswerRe: c# Pin
Mycroft Holmes6-Feb-10 0:06
professionalMycroft Holmes6-Feb-10 0:06 
AnswerRe: c# Pin
Md. Marufuzzaman6-Feb-10 0:33
professionalMd. Marufuzzaman6-Feb-10 0:33 
AnswerRe: c# Pin
#realJSOP6-Feb-10 2:03
professional#realJSOP6-Feb-10 2:03 
AnswerRe: c# Pin
Brij6-Feb-10 7:16
mentorBrij6-Feb-10 7:16 
Questionfunction c# Pin
bahar35-Feb-10 23:05
bahar35-Feb-10 23:05 
AnswerRe: function c# Pin
OriginalGriff5-Feb-10 23:16
mveOriginalGriff5-Feb-10 23:16 

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.