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

Answer Posted / guest

Yes, just leave the class public and make the method sealed.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sessions in c#?

496


Is null in c#?

489


What is part of a method signature in c#?

471


How to reduce image resolution in C#?

638


What is tochararray in c#?

453






How do I calculate relative time?

506


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

602


What is using keyword in C#?

572


What are the fundamental oop concepts?

531


What are tuples c#?

502


What is expandoobject in c#?

487


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

523


Is c# substring zero based?

507


Why do we write system in c#?

492


How you will create satellite assemblies?

489