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

How Garbage Collector identifies the objects which are not in use?

6 Answers   EXL, Honeywell, Microsoft, Tech Mahindra, Tesco,


Is dapper better than entity framework?

0 Answers  


Explain two instances where routing is not implemented or required?

0 Answers  


WHICH IS THE BEST INSTITUTE FOR DOTNET REAL TIME PROJECT TRAINING

21 Answers   ABC, Cap Gemini, Comspark,


What is Reflection in .NET?

6 Answers   Fiserv, TCS,






Hi my name is sahil. i did my bsc in 2008 n did marketing jobs thereafter. bt nw i wanna learn .net to enter IT field. Ive heard deccansoft,secbad is the best inst. for .net. bt do they provide placement?? as im not a fresher so will i be hired by any company..??

1 Answers  


WHICH IS MORE SECURED AMONG JAVA AND .NET?

7 Answers  


what is split entity?

0 Answers   Microsoft,


What is clr? How does work clr & wht is work of clr?

0 Answers  


How to set background for total website, on that another another layer, in that we keep website data,,for example see www.msn.com. On one faded background we ll have layer like other background..Do explain how its possible

2 Answers  


Explain how you can implement Ajax in MVC?

0 Answers  


What is the "helperpage.isajax" property?

0 Answers  


Categories