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
Smart Lucky
NA
555
637.7k
New Keyword in Polymorphism
Jan 3 2012 5:35 AM
Hi
can any one tell me what is doing new Keyword i am not understanding
class BC
{
public void Display()
{
System.Console.WriteLine("BC::Display");
}
}
class DC : BC
{
new public void Display()
{
System.Console.WriteLine("DC::Display");
}
}
class TC : DC
{
new public void Display()
{
Console.WriteLine("TC::Display");
}
}
class Demo
{
public static void Main()
{
DC b;
b = new DC();
b.Display();
b = new TC();
b.Display();
//b = new TC();
//b.Display();
}
}
Reply
Answers (
6
)
Display identity number on textbox or label
problem in connecting MS access with C#