Guest User

Untitled

a guest
Mar 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. interface Aparato {
  2. void hacerCosas();
  3. }
  4. abstract class Electronico {
  5. void cargarEnergia() { System.out.println("conectarse"); }
  6. }
  7. class Tableta extends Electronico implements Aparato {
  8. void hacerCosas(){ System.out.println("haciendo cosas"); }
  9. public static void main(String[] args){
  10. new Tableta().cargarEnergia();
  11. new Tableta().hacerCosas();
  12. }
  13. }
Add Comment
Please, Sign In to add comment