Created
August 3, 2016 13:35
-
-
Save sampattuzzi/b28fa8c36f91d4d6699e028306fe6a89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bananas firstBanana = new Bananas(); //This makes a new instance of the class Bananas | |
Bananas secondBanana = new Bananas(); //This makes a second clone completely separate to the first one. | |
firstBanana.isFruity = true; | |
secondBanana.isFruity = false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment