Exam 2 Topics
-
Exam 2 will include the following:
-
You will write an
abstract
superclass that will include
data fields, constructors, set method(s) that validate by throwing
exceptions, get methods, an abstract
method definition
and an toString
method that makes a call to the method
in the subclass that implements the abstract
method
-
The you will write a
final
subclass that will include
data fields, constructors, set method(s) that validate by throwing
exceptions, get methods and a method that implements the
abstract
method from the super class
-
You also will write an
Interface
with one or more constants
-
Finally you will create a "driver" class that instantiates an object from
the subclass, gets input from a user, catches exceptions from the user
input as well as from the set methods of both the superclass and subclass,
and displays the results from the
toString
method of
the superclass
-
You may create this project in either BlueJ and NetBeans
-
Of course it is necessary to understand all topics that preceeded this test to complete the requirements of
Exam 2.
-
The exam will be open book which means the textbook (hard-copy or on-line), Java on-line API documentation, and
any printouts of lecture notes and sample programs.