What are Sealed Classes in C#?

Answer Posted / vijay rana

if we want to prevent a class to be inherited then we use
the keyword sealed,
means this class will not be inherited now

Is This Answer Correct ?    117 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you use abstract class and interface?

532


Structs are largely redundant in c++. Why does c# have them?

737


Is string a data type in c#?

483


Does c# support const methods, properties, or events?

537


What is Covariance and contravariance in C#?

552






Write a C# program to find the Factorial of n

553


Difference between debug.write and trace.write?

512


What is returned if you pass the value 12.34 to the parsefloat () function?

517


What is the namespace for datatable in c#?

488


Which are access modifiers available in c#?

514


What is the syntax for calling an overloaded constructor within a constructor?

524


Does c# support c type macros?

549


What are the properties of c#?

481


How can encapsulation be achieved?

595


What is interpolation in programming?

481