Exam 1 Topics
- Integrated development environments
-
Class definition and object instantiation, including constructors, instance
variables, access modifiers (
public
and private
),
and mutator and accessor methods
- The keyword
this
as an object's reference to itself
- The
toString()
method
- Methods and variables that are
static
- Inheritance and subtyping
- The Java API (Application Programming Interface) and library of classes
- The
main()
method
- The
import
statement
- Data input including
Scanner
objects and JOptionPane.showInputDialog()
- Data output including
System.out.println()
and JOptionPane.showMessageDialog()
- Wrapper classes and methods, e.g
Integer.parseInt
, Double.parseDouble
, etc.
- Commenting code in Javadoc style
-
Specifically you will write and submit three classes:
(1) a super class; (2) just one subclass; and
(3) a driver in a
main
method that
instantiates an object from the subclass and
displays its attributes