What is the use of sealed methods in C#?

  • Thread starter Thread starter Newuserms123
  • Start date Start date
N

Newuserms123

Guest
I understand that the sealed modifier is used with overridden methods in derived class to prevent further override. But what i don't understand is we can also create a non virtual methods which cannot be overridden by derived classes. Why can't we use such non virtual methods instead of sealed classes? Is it useful when we have multilevel inheritance? How exactly sealed methods used in c#?

Continue reading...
 
Back
Top