Wednesday, 23 December 2015

How can we set class to be inherited, but prevent the method from being over-ridden?

Declare the class as public and make the method sealed to prevent it from being overridden.

No comments:

Post a Comment