board
Nested loops: The number of times the inner-most loop body executes is the product of the number of times each of the loops iterates.
Nested loops: The number of times the inner-most loop body executes is the product of the number of times each of the loops iterates.
Nested loops: I ran out of nested loop questions to ask
Nested loops: Java applies the loop controls (break and continue to the most recently entered loop.
Nested loops: If you got this one wrong....
Constructors: Remember these four parts!
Constructors: The 'default' constructor always has no parameters
Constructors: A specific constructor always has one or more parameters
Constructors: A constructor is used to construct (create) and initialize a new object
Constructors: This isn't necessary for this exam
Constructors again: There can be only one (technically, there can be zero as well)
Constructors again: You can put in as many specific constructors as you want
Constructors again: This is how Java tells a constructor from the other methods
Constructors again: You do not specify a return type for a constructor - this is different than specifying 'void'
Constructors again: All constructors (that we've seen so far) must be public
Creating classes: This is how behaviors are implemented in Java
Creating classes: This is how attributes (or properties) are implemented in Java
Creating classes: The name 'accessor' is just a fancy name for a method that does this
Creating classes: The name 'mutator' is just a fancy name for a method that does this
Creating classes: The name 'facilitator' is just a fancy name for a method that is not one of the other three types
Methods: The keyword void means that no value is returned from the method
Methods: The value returned by the foo() method gets copied into the variable x
Methods: System.out.println does not return a value, thus is has a void return type
Methods: Not always, but for this course, they pretty much always will
Methods: Not always, but for this course, they pretty much always will