public class CalculatorImpl extends RemoteObject implements Calculator
Constructor and Description |
---|
CalculatorImpl() |
Modifier and Type | Method and Description |
---|---|
int |
add(int x,
int y) |
int |
divideByZero() |
int |
getMult() |
void |
mult(int x,
int y) |
void |
sendMessage(Message m) |
void |
setMult(int mult) |
getChannel, getParams, getRef, invokeMethod, kill, run, startRemoteObject
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public CalculatorImpl() throws java.lang.Exception
java.lang.Exception
public int add(int x, int y)
add
in interface Calculator
public void mult(int x, int y)
mult
in interface Calculator
public int getMult()
public void setMult(int mult)
public void sendMessage(Message m)
sendMessage
in interface Calculator
public int divideByZero()
divideByZero
in interface Calculator