Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Cuidador extends Persona
- {
- public Cuidador(){
- Animal a = new Animal() {
- @Override
- public void serAlimentado() {
- throw new UnsupportedOperationException("Not supported yet.");
- }
- @Override
- public void recibirCuidado() {
- throw new UnsupportedOperationException("Not supported yet.");
- }
- @Override
- public void grunir() {
- throw new UnsupportedOperationException("Not supported yet.");
- }
- };
- a.serAlimentado();
- }
- }
Add Comment
Please, Sign In to add comment