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

What is the property available to check if the page posted or not

1 Answers  


What are class access modifiers

1 Answers  


Explain the use of Inversion of control (IOC)?

0 Answers  


what is view state

3 Answers   Wipro,


How to Create an Intranet Site Using ASP.NET MVC?

0 Answers  






Does windows 10 need .net framework?

0 Answers  


unit test done by tetser on development team?

3 Answers   Crea,


Hello frnds, Actually i am plannig to put fake Xperince letter is it good or not, and please suggest me from where we take it.

1 Answers  


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

0 Answers  


What is Layout in ASP.Net MVC?

0 Answers   B-Ways TecnoSoft,


How do you register the dotnet component or assembly ?

1 Answers   Accenture, BirlaSoft,


What is the version number for the next version of the .net framework, codenamed �orcas�?

0 Answers  


Categories