0
Write a program that will perform all the arithmetic operation. Use inheritance and method overriding
java program
2 odpowiedzi
0
public class Arithmetic operation{
public static void main (String [] args){
int a =3;
int b =5
Scanner Sc = new Scanner (System.In);
public Arithmetic operation extend Multiplication ();
int a =1;
System. out.println (a);
public void Multiplication ();
a = 3*5;
system. out.println ("a");
}
}
- 1
hola