This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Vishnusadagopan
wrote ...
2017/10/24
Instance variable
Vishnusadagopan
2017/10/24
#
how do I Create an instance variable in to keep track of the number of pizzas a friendly cat object will eat. Name it numberOfPizzas and initialize the instance variable with 0? Thanks
danpost
2017/10/24
#
An instance variable is (a non-static) one that is declared outside of any method (as opposed to being declared within a method).
You need to login to post a reply.
X