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
Manohar Gova
1.5k
255
38.8k
Method Overriding
Oct 17 2016 9:51 PM
Hi All,
Why we need method overriding? instead of we can create new method
EX:
class Employee
{
public string GetName()
{
}
public virtual string SayHello()
{
return "hello good morning";
}
}
Class Student:Employee
{
public override string SayHello()
{
return "Hello good Night";
}
}
Here my question is instead of overriding SayHello() we can create New method SayHello
Class Student:Employee
{
public string SayHello()
{
return "Hello good Night";
}
}
please explain.
Thanks,
Manohar G
Reply
Answers (
3
)
MEF 2.0 Tutorial
working with mysql and visual studio 2012