Question: Write program into java language . i need this in one hour please do it fast Sukhdeep Kaur: Attempt 1 -total:int +setNum1 (int):void +setNum2(int) :void
Write program into java language .
i need this in one hour please do it fast

Sukhdeep Kaur: Attempt 1 -total:int +setNum1 (int):void +setNum2(int) :void +sum (int, int) :int 1) create an interface named MyMethod that contains an abstract method named sum(). The sum() method takes two arguments of the integer type each and returns a value of integer type. 2) An abstract class named AbstractMyMethod that implements the MyMethod interface. Do not override the inherited sum() method in this abstract class. 3) A class named MYMethodClass that extends AbstractMyMethod abstract class and provides implementation for the inherited sum() method. The sum() methods calculates the sum of the values received as arguments and returns the calculated sum. There are some set methods for setting values in numbers. 4)Create Demo class to show implementation of MYMethodClass Class by creating object of MYMethodClass class and then calling set methods to set values into variables. Then object should call sum() method to show results. EN O e W
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
