Advertisement
ADL_Rodrigo_Silva

Untitled

Dec 22nd, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. /**
  2.  *
  3.  */
  4. package cl.adl.inter;
  5.  
  6. /**
  7.  * @author RS
  8.  *
  9.  */
  10. public class Leon implements Comer, Dormir {
  11.    
  12.     public void aComer() {
  13.         System.out.println("Cómo como un León");
  14.     }
  15.    
  16.     public void aDormir() {
  17.         System.out.println("Duermo como un Lion");
  18.     }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement