Advertisement
DulcetAirman

Interfaces in Java

Apr 9th, 2015
255
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     interface IFoo {
  2.         Bar getBar();
  3.         void setBar(Bar bar);
  4.         Baz getBaz();
  5.         void setBaz(Baz baz);
  6.         Qux getQux();
  7.         void setQux(Qux qux);
  8.     }
  9.    
  10.     interface IFoo<A,B,C> {
  11.         A getA();
  12.         void setA(A a);
  13.         B getB();
  14.         void setB(B b);
  15.         C getC();
  16.         void setC(C c);
  17.     }
  18.    
  19.     interface IMyFoo extends IFoo<Bar, Baz, Qux> {}
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement