Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package clase_abstracta;
- public class main {
- public static void main(String[] args) {
- Pajaro pajaro1 = new Pajaro();
- Serpiente serpiente1 = new Serpiente();
- Pez pez1 = new Pez();
- pajaro1.mover();
- serpiente1.mover();
- pez1.mover();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement