Created
January 2, 2019 20:53
-
-
Save briantliao/89e4a1852ac4c62a9c3f42f44ff3e6de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// declarations | |
int a; | |
int[] b; | |
Car toyota; | |
// we "declare" b as an array of integers, then "instantiate" a new array of integers with size 10 and "assign" it to b. | |
int[] b = new int[10]; | |
// we "declare" toyota as a Car, then "instantiate" a new Car object and "assign" it to toyota. | |
Car toyota = new Car(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment