How can you prevent classes to be inherited?
Answer Posted / chvramana
Using Keyword Sealed. You can created Sealed class and
You can prevent the class to be inherited.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What does exclamation mark mean c#?
what is a static constructor?
How is lazy loading achieved?
Is unity object oriented?
What do you mean by a windows process in regards to memory allocation?
What is winforms c#?
Give an example of a ctype.
Explain what is copy constructor?
What is array formula?
Is a valid int value?
How does dependency injection work c#?
Define delay signing?
Difference between call by value and call by reference in C#?
How many keyword present in C# language ?
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?