SHARE
TWEET

Untitled

a guest Jun 16th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface Flyable {
  2.   fly();
  3. }
  4.  
  5. interface Quackable {
  6.   quack();
  7. }
  8.  
  9. class Duck implements Flyable, Quackable {
  10.   fly() {
  11.     // Do fly;
  12.   }
  13.  
  14.   quack() {
  15.     // Do quack;
  16.   }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top