Can you prevent a class from overriding?

Answer Posted / nazrul

we can use sealed keyword at the time of declartion of class
thorugh which it won't inherit and won't be overide.

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1527


What is an int in c#?

599


If a method's return type is void, can you use a return keyword in the method?

616


What is an arraylist in c#?

695


What is difference between ienumerable and enumerable in c#?

542






Explain data types in c#?

604


Why do we use static class in c#?

566


What is difference between association, aggregation and inheritance relationships?

580


Is c# an open source?

572


What is continue in c#?

615


What is c# best for?

611


What does exclamation mark mean in access query?

648


How does insertion sort work?

600


What is Named parameter in C#?

632


What do you mean by serialization in .NET?

626