Hello everyone,
first I want to say that i was reading the HowTo about this, my english is not perfect... I was able to make it work in school but somehow now that I am trying it at home I cant make it work again :/
Greenfoot does not give me any error message
I want that the class Mine runs the method lebenVerringern(); from a Object of the class Robita.
In Mine i have this code:
And in Robita i simply have this:
The method lebenVerringern(); works if i run it directly from Robita.
I hope its no problem for you that the names are german and that i was posting the code the right way
Thats all, I would appreciate any help :)
Robita robita = new Robita(); void lebenVerringern() { robita.lebenVerringern(); }
int lebenRobita = 20; public void lebenVerringern() { lebenRobita = lebenRobita-5;; }