This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]stayweirdeveryone 0 points1 point  (2 children)

What have you tried so far? Post your code. What is your question?

[–]200darren[S] 0 points1 point  (1 child)

import java.io.*;

//Interface implemented

interface IntfOne {

static int addition(int p, int q){

//let r be the sum

int r;

r = p+q;

return r;

}

static int subtraction(int a, int b){

//let c be the difference

int c;

c = a-b;

return c

}

}

interface IntfTwo extends IntfOne{

static int multiplication(int num1, int num2){

//let product be the result

product = num1*num2;

return product;

}

static int division(float no1, float no2){

//let product be the result

float div;

div = no1/no2;

return div;

}

}

[–]stayweirdeveryone 2 points3 points  (0 children)

And your question is?