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

 Make the class sealed by using sealed keyword.

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

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

Post Your Answer
Guest User

Not sure what solution is right for you?

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


Let`s Connect