How can you prevent classes to be inherited?

Answer Posted / vijay sharma

We can prevent classes to be inherited by marking the
classes as sealed.

Is This Answer Correct ?    24 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of constructors are there?

510


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

554


Explain about Threading Types.

600


Why References are stored on heap and variables on stack?

511


What are the properties of string?

492






What is lazy loading entity framework?

499


What is a namespace server?

478


Can you pass value types by reference to a method?

522


What is use of hashtable in c#?

482


What are sessions in c#?

496


Define strong name in c#?

523


What is a generic class?

531


hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

1397


What is mean by c#?

486


What is the purpose of constructor in c#?

449