Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Aigle extends Oiseau {
- public Aigle (String nom){
- super(nom);
- }
- public String donneNourriture(){
- return "Souris";
- }
- public String donneEspece(){
- return "Oiseau "+donneRace();
- }
- public String donneRace(){
- return "Aigle";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement