SingleInherit.java - class A void methodOne(int a,int b System.out.println\"Sum is(a b class B extends A void methodTwo(int a,int b

SingleInherit.java - class A void methodOne(int a,int b...

This preview shows page 1 out of 1 page.

class A { void methodOne(int a,int b) { System.out.println("Sum is:"+(a+b)); } } class B extends A { void methodTwo(int a,int b) { System.out.println("Multiplication is:"+(a*b));
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '19
  • English-language films, 2000 albums, public static void, int b

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture