Podcast
Questions and Answers
❖ The final keyword can be used to prevent class inheritance or to prevent method
overriding.
❖ So if we declare class method as a Final then that method cannot be override by the child
class.
❖ Same as method if we declare class as a Final then that class cannot be extended any
more
❖ The final keyword can be used to prevent class inheritance or to prevent method overriding. ❖ So if we declare class method as a Final then that method cannot be override by the child class. ❖ Same as method if we declare class as a Final then that class cannot be extended any more