Final : In Java, Methods are virtual by default. So any method declared final to prevent it from being overridden.
Sealed : In C#.Net , Methods are not virtual by default, so the only overridden methods can be declared sealed.(To prevent them from being further overridden )
No comments:
Post a Comment