Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestaAnimais {
- public static void main(String[] args) {
- Peixe p = new Peixe();
- Gato g = new Gato("Tom");
- Animal a = new Peixe();
- Animal ab = new Aranha();
- AnimalDeEstimacao ae = new Gato();
- p.caminhar();
- g.brincar();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement