Question: (b) The interface Num Tools is defined as follows: interface Num Tools{ public boolean isOddo: public boolean isEqual(Integer x); public Integer min(Integer x); } Write

(b) The interface Num Tools is defined as follows: interface Num Tools{ public boolean isOddo: public boolean isEqual(Integer x); public Integer min(Integer x); } Write a class MyNumber that implements this interface. Both the constructor and the attribute of the class are given. class MyNumber implements Num Tools{ private Integer ki MyNumber(Integer x){k = x;} }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
