Java Programming Write a java program to implement single level inheritance. | VCMIT by Music Lyrics - March 13, 2020 Single Level Inheritance. INPUTclass Single{ static int num1=10; static int num2=5;}class Main extends Single{ public static void main(String[] args){ int num3=2; int result=num1+num2+num3; System.out.println("Result of child class is "+result); }}OUTPUT Share Tweet Pin Share Tags : Java Programming Newer Post Older Post You May Also Like 0 Comments
0 Comments