private ArrayList
caprasIed=new ArrayList
caprasIed.add("Iedul mic");
caprasIed.add("iedul mediu");
caprasIed.add("iedu care o supt mai mult");
private Carnivor lupul;
lupul= new carnivor("Lupul cel rau");
Ied iedTemporarSiProst;
iedTemporarSiProst=new Ied();
if(lupul.knockKnok()) {
iedTemporarSiProst= caprasIed.get(2);
if (iedTemporarSiProst.open(door)) {
lupul.NumberOfKillsCount();
iedTemporarSiProst.died();
}
}
No comments:
Post a Comment