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
siddharth rai
NA
10
3.9k
Interface in c#
Jun 13 2014 7:05 AM
"The CLR requires that interface methods be marked as virtual. If you do not explicitly mark the method as virtual in your source code, the compiler marks the method as virtual and sealed; this prevents a derived class from overriding the interface method.
If you explicitly mark the method as virtual
, the compiler marks the method as virtual (and leaves it unsealed); this allows a derived class to override the interface method.
If an interface method is sealed, a derived class cannot override the method. However, a derived class can re-inherit the same interface and can provide its own implementation for the interface’s methods.
"
please explain .
i am confuse for the line "
If you explicitly mark the method as virtual
, the compiler marks the method as virtual (and leaves it unsealed); this allows a derived class to override the interface method.
"
Reply
Answers (
0
)
interface in c#
Two String in Where Condition for one Column.