Can you prevent your class from being inherited and becoming
a base class for some other classes?

Answer Posted / rakesh

We can also make the methods sealed.In that case ,the class
can inherit but the sealed methods in that class cannot

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain publishers and subscribers in events.

717


What is sqlconnection in c#?

687


Why we use get and set property in c#?

695


What is continue in c#?

719


Are classes passed by reference in c#?

665


what is object-oriented programming (oop) language?

662


How do I type a whitespace character?

742


Can arraylist hold primitive types?

749


What is difference between ienumerable and list in c#?

640


Is it possible to have a static indexer in c#?

715


What do u mean by delegation?

710


Is everything an object c#?

697


What is datetime parse in c#?

704


Describe the ways of cleaning up objects in c#.

693


What is the default value of string in c#?

761