Explain the use of sublass in a Java program?
Question : Explain the use of sublass in a Java program?
Sub class inherits all the public and protected methods and the implementation. It also inherits all the default modifier methods and their implementation.