What is a final class?

A final class is a class that can’t be extended . Also methods could be declared as final to indicate that cannot be overridden by subclasses. Preventing the class from being subclassed could be particularly useful if you write APIs or libraries and want to avoid being extended to alter base behaviour.22 May 2018

Sizin İçin Seçtik  Which are the methods of object class?

Leave a Reply

Your email address will not be published. Required fields are marked *