Answer Posted / gpriya
A sealed class cannot be inherited. It is an error to use a
sealed class as a base class. Use the sealed modifier in a
class declaration to prevent inheritance of the class.
It is not permitted to use the abstract modifier with a
sealed class.
Structs are implicitly sealed; therefore, they cannot be
inherited.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can we create instance of private class in c#?
Is c# the same as d flat?
How to achieve polymorphism in c#?
What is null character in string?
What is literal in c#?
What is yield in c#?
Can we have 2 main methods in c#?
What is the difference between parse and tryparse in c#?
How do you escape c#?
How can you achieve run time polymorphism in C#?
Can a class have more than 1 destructor?
What is difference between Enum and Struct?
What is the use of constructor in c# with example?
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
What is difference between for and foreach loop in c#?