Counting the remaining implementations

A Java file-processing library has the draft declarations below. Keep CsvJob concrete and directly extending CheckedJob, and leave all earlier classes unchanged. How many additional method implementations must be declared inside CsvJob for it to compile? Give the number of implementations as an exact integer, with zero decimal places.


Java
abstract class FileJob {
    public abstract void load();
    public abstract void validate();
    public abstract void transform();
    public abstract void save();
}

abstract class LoadedJob extends FileJob {
    public void load() { }
}

abstract class CheckedJob extends LoadedJob {
    public void validate() { }
}

class CsvJob extends CheckedJob { }

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Abstract Methods and Abstract Classes Questions: