Qus:    How do you prevent a class from being inherited?
Nov 03, 2020 04:14 2 Answers Views: 591 KRISHNA SWAROOP

 Make the class sealed by using sealed keyword.

Prev Next
Answers (2)
ANANYA Nov 04, 2020 00:10
Answer:   In C#, we can use the sealed keyword to prevent a class from being inherited

PARTH Nov 10, 2020 08:24
Answer:   Make the class sealed by using sealed keyword.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect