Campbell Ritchie wrote:
If however you write "B = new Cat();" it means create a new Cat object (maybe black cat called Tibbles at memory location 2345bcde) and use that instead of "B"
sahar sa wrote:
Peter Granstrom wrote:
Hi i liked your answer,
but i think in the if() i would try to decide if boolean to true or false before
because then you dont have to make changes afterwards and can decide
before if its right or wrong and probably get a better structure in your code