← BYTES
C#·Starter·Ref: 22.1.19

What is the purpose of the sealed keyword on a class?

Have a question about this video? Mention reference 22.1.19 when you contact us.

a.It forces the class to be static
b.It marks all members as private
c.It makes the class immutable
d.It prevents any other class from inheriting from it
A sealed class cannot be used as a base class for further inheritance, which can also let the JIT skip virtual-dispatch overhead for calls on it.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES22119#C