Uh oh, bike1 and bike2 are instances of Bicycle and have exactly the same number of methods. They're just called differently. Each method call changes the state of the instance. The state is defined...
Type: Posts; User: PhHein
Uh oh, bike1 and bike2 are instances of Bicycle and have exactly the same number of methods. They're just called differently. Each method call changes the state of the instance. The state is defined...
What exactly don't you understand? The output is as expected.