Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / guest

make the method as sealed

Is This Answer Correct ?    18 Yes 2 No

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

Answer / sujai cn

By using NEW key word with implementation of method (which
is declared as virtual in base class) in the derived class

Is This Answer Correct ?    3 Yes 0 No

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

Answer / mr.f

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

Is This Answer Correct ?    5 Yes 5 No

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

Answer / nkm

Class can be MustInherit and method can be NotInheritable
(VB.NET Concept)

Is This Answer Correct ?    0 Yes 1 No

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

Answer / avijit

declare the method as protected

Is This Answer Correct ?    5 Yes 11 No

Post New Answer

More C Sharp Interview Questions

What are the ways to deploy an assembly?

1 Answers  


Distinguish between continue and break statement?

0 Answers  


What is unsigned int?

0 Answers  


What is array and arraylist?

0 Answers  


How do you generate documentation from the C# file commented properly with a command-line compiler?

1 Answers  


What is the difference between interface and abstract class ?

2 Answers   Basware, BITS,


what is a static constructor?

0 Answers  


What are anonymous methods ? why these methods are used and in what condition these methods are useful ?

1 Answers  


What are the benefits of using the aggregate method in linq?

0 Answers  


how can include .netframeworl 2.0 in application setup

1 Answers  


If a class is a ref type, how we can pass to a function.

1 Answers   Synechron,


If you want to write your own dot net language, what steps you will u take care?

0 Answers  


Categories