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

Answer Posted / avijit

declare the method as protected

Is This Answer Correct ?    5 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have multiple constructors in a class c#?

585


Enlist all the components of an ado.net framework?

558


Explain the difference between user control and custom control. Also, explain their use.

679


In .Net, what is an assembly? Also explain the type of assembly.

604


From which base class do all Web Forms inherit from?

602






Why do we need oops in c#?

581


What are the 3 logical operators?

641


Which of the following API is used to hide a window?

627


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

632


Who is a accessibility modifier “protected internal” available to ?

699


What are floating point numbers?

565


Can an abstract class inherit from another abstract class c#?

629


What is serializable in c#?

589


How to declares a two-dimensional array in C#?

693


How to achieve polymorphism in c#?

631