Page 202 - AP Computer Science A, 7th edition
P. 202
{
//additional private instance variables //additional data members
//constructors (Not inherited!)
//additional public methods
//inherited public methods whose implementation is overridden
//additional private methods
}
For example, consider the following inheritance hierarchy:
The implementation of the classes may look something like this (discussion follows the code):
public class Student {
//data members
public final static int NUM_TESTS = 3; private String name;
private int[] tests;
private String grade;
//constructor public Student() {
name = " ";
tests = new int[NUM_TESTS]; grade = " ";
}
//constructor
public Student(String studName, int[] studTests,