How can you prevent your class to be inherated further



How can you prevent your class to be inherated further..

Answer / kirti

By setting Sealed - Key word

public sealed class Planet

{

//code goes here

}

class Moon:Planet

{

//Not allowed as base class is sealed

}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

If Controller is not there in MVC Pattern what happens?

2 Answers  


What is basic authentication in web api?

0 Answers  


Difference between manifest , metadata?

3 Answers   Soma Technology, TCS,


what is the use of final method

3 Answers   TCS,


what happened when type url in address bar and press enter?

5 Answers   IBM, Wipro,






What are ajax helpers in asp.net mvc?

0 Answers  


Explain dependency resolution?

0 Answers  


Describe the roles of clr in .net framework.?

0 Answers  


How to set the debug mode

1 Answers   4Cplus,


What is the use of JIT

1 Answers  


What is the advantage of mvc?

0 Answers  


Mention the core components of .net framework?

0 Answers  


Categories