Is the final method inherited?

Is the final method inherited?

Yes, the final method is inherited, which means that it cannot be overridden by the subclasses. Once a method is made final, it is not possible to override it. The benefit of this is that a final method is typically faster than any other method, because it is resolved at complied time.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.