ittimepass.com
Write a program in java to demonstrate final class? ⋆ IT TIME PASS
final class Pro { public void print() { System.out.println("Hello"); } public void display() { System.out.println("India"); } } class Chance extends Pro { public void print() { System.out.println("Hii"); } public void display() { System.out.println("Hindustan"); } public static void main(String …