sealed keyword prevents inheritance of a class. Inheritance is one of the feature of object oriented program. Does it mean sealed is not oops concept?
Asked
Active
Viewed 50 times
1
-
2Just because a tenant of OOP is inheritance does not mean that _everything_ has to be inherited – maccettura Oct 10 '18 at 16:14
-
4Well if you consider that the keyword `sealed` is entirely dependent on inheritance, I would say that it very much IS an OOP concept. `sealed` wouldn't exist as a concept without OOP. – Matthew Watson Oct 10 '18 at 16:14
-
thank you maccettura and Matthew – thegautamnayak Oct 10 '18 at 16:15