tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "siegfried" <siegfr...@heintze.com>
Subject Why two interfaces for CalculatorImpl.java
Date Tue, 26 May 2009 07:48:32 GMT
I'm studying
openejb-examples-3.1\simple-stateless\src\main\java\org\superbiz\calculator\
CalculatorImpl.java
 
(1) Why does CalculatorImpl need to implement two identical interfaces? Is
this necessary? Is this because we might want to expose additional
functionallity to other server side functions that are not available to
clients?
 
(2) In c++ one would have to implement function sum twice: one for
    each interface. Does the single implementation of function "add"
    satisfy both ancestor interfaces?
 

    


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message