Skip to content

Instantly share code, notes, and snippets.

@sampattuzzi
Created August 3, 2016 13:35
Show Gist options
  • Save sampattuzzi/b28fa8c36f91d4d6699e028306fe6a89 to your computer and use it in GitHub Desktop.
Save sampattuzzi/b28fa8c36f91d4d6699e028306fe6a89 to your computer and use it in GitHub Desktop.
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