Can you allow class to be inherited, but prevent the method
from being over-ridden?

Answer Posted / mr.f

This problem is very easy, You just declared the method
without virtual keyword. :d

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Configuration files in .net?

590


How can I get the ascii code for a character in c#?

638


What is an escape sequence? Name some string escape sequences in c#.

601


In a single .NET DLL how many classes it contains?

593


What is the difference between a variable and a literal?

634






What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

630


What is difference between write and writeline in c#?

570


How to force my .net app to run as administrator on windows 7?

588


Why do we need serialization?

536


Explain the serialization in .net

636


How do I do a case-insensitive string comparison?

597


Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

587


How do namespaces work?

620


What is the difference between Static, Const and read only?

644


Can you specify nested classes as partial classes?

605