i. Grading:
1.
15%
Object oriented structure, 10% Commenting
ii. Tip figuring out if a move is
valid and flipping the pieces is probably the toughest part. If you get stuck, try working on the save
and load options
iii. Partners - by Friday, 12/9
i. Sample questions
ii. Last springs exam
i. Extends clause
ii. public class <className>
extends <className>
iii. Extend either Exception or
Runtime Exception, depending on whether you want it to be checked or unchecked.
i. Inheritance relationship
between classes
ii. Subclasses/children and
Superclasses/parents
iii. The role that extends plays in
this defining a subclass
i. If your code calls for a
superclass, you can use one of its subclasses.
i. Defining the same method in a
subclass as a superclass if we call it from an object of the subclass, it
will use the subclass version
i. Same method name, different
parameters
ii. Overloading constructors
iii. Overloading methods
i. Syntax: super.method(params);
ii. Things to be careful about if
calling the same method from the superclass from within a method in the
subclass, make sure to use the super keyword otherwise, youll probably end
up in an infinite loop
iii. Superclass constructors
1.
Can
call the superclass constructor from within the subclass constructor
2.
Syntax: super(params);
i. Method calls are determined by
type of object, not variable
i. Ask different objects to carry
out same task each does it in its own way