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
Akkiraju Ivaturi
NA
8.7k
4.2m
Overloading
Sep 7 2012 11:18 PM
What is displayed, and why?
using
System;
class
Base
{
public
virtual
void
Foo(
int
x)
{
Console.WriteLine (
"Base.Foo(int)"
);
}
}
class
Derived : Base
{
public
override
void
Foo(
int
x)
{
Console.WriteLine (
"Derived.Foo(int)"
);
}
public
void
Foo(
object
o)
{
Console.WriteLine (
"Derived.Foo(object)"
);
}
}
class
Test
{
static
void
Main()
{
Derived d =
new
Derived();
int
i = 10;
d.Foo(i);
}
}
Reply
Answers (
1
)
any body having IABC source code ..
What will be displayed, why, and how confident are you?