Miniprelim May 2021 A four class program with inheritance - A Bare Bones solution The scenario is an event with contestants with and without disabilities. One class for contestants without disabilities - the super class One class for contestants with disabilities - the sub class /* * Mini prelim May 2021 */ package miniprelim; public class TheRaceUI { public static void main(String[] args) { String names = null; TheRaceManager rm = new TheRaceManager(); names = rm.displayAll(); System.out.println(names); System.out.println("The race UI"); } } ================================================================== /* * Mini Prelim May 2021 * The manager class with the the necessary methods */ package miniprelim; public class TheRaceManager { Contestants c = new Contestants(); public TheRaceManager() { System.out.println("Contestant"); // read in the text file to an array of objects } // end constructor public String displayAll() { String name = c.toString(); return name; } // end displayAll } ==================================================================== /* * Mini prelim May 2021 * The Contestant template class * The super class */ package miniprelim; public class Contestants { private String firstName = "Bertie"; private String lastName = "Van Wyk"; private String theName = null; public String toString() { theName = firstName + "\t" + lastName; return theName; } } =================================================================== /* * Mini prelim May 2021 * The template class for contestants with a disability * Sub class of Contestants */ package miniprelim; public class ContestantsP extends Contestants{ private String prosthetic = null; private String equipment = null; public String toString() { // returns Contestants toString with the extra fields return super.toString() + "\t" + prosthetic + "\t" + equipment; } // end toString }