Tuesday, 11 August 2015

What is difference between Sealed and Final

  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