How can you prevent classes to be inherited?

Answer Posted / nagesh rajarapu

by using sealed keyword before the class name

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is JIT (just in time)? how it works?

551


When do we generally use destructors to release resources?

517


What does console writeline do?

492


How do you use nullable?

499


Why we use get and set method in c#?

497






Why are dynamic link library used over static one?

542


Is is possible to force garbage collector to run?

522


Explain the difference between pass by value and pass by reference.

542


How do I unload an application domain?

521


What is the difference between virtual and override in c#?

475


What is datetime minvalue in c#?

571


How many dimensions can an array have?

465


How is a string immutable?

488


Explain how do you directly call a native function exported from a dll?

505


Overloaded constructor will call default constructor internally?

563