TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jigar Tailor
NA
3
710
Confusion in Multiple Inheritance using Interface.
Jun 2 2015 12:23 AM
Hi All,
I have one confusion in following code.
class
Program
{
static void
Main(string[] args)
{
MyClass
myClass =
new
MyClass
();
myClass.Display();
Console
.ReadKey();
}
}
public interface
IOne
{
void
Display();
}
public interface
ITwo
{
void
Display();
}
public class
MyClass
:
IOne
,
ITwo
{
public void
Display()
{
Console
.WriteLine(
"test"
);
}
}
In above code which display method will get called Display() of IOne or Display() of ITwo?
Reply
Answers (
4
)
How can i copy file with administrator user and password
how add mysql in vidual studio server explorer list ??