Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Aparato {
- void hacerCosas();
- }
- abstract class Electronico {
- void cargarEnergia() { System.out.println("conectarse"); }
- }
- class Tableta extends Electronico implements Aparato {
- void hacerCosas(){ System.out.println("haciendo cosas"); }
- public static void main(String[] args){
- new Tableta().cargarEnergia();
- new Tableta().hacerCosas();
- }
- }
Add Comment
Please, Sign In to add comment