b) Write code fragments in the application / driver class that can perform the following tasks: (Assume all relevant methods have been defined in all

b) Write code fragments in the application / driver class that can perform the following tasks: (Assume all relevant methods have been defined in all classes involved) i) Declare an array of object named tp to store various types of theme park where the size of array is entered by the user. Transcribed Image Text: Given the following super class and subclasses:
public abstract class ThemePark
String name: // customer’s name
String icNo: // customer’s identification card number
boolean member: // either member or nonmember of the
// theme park
//Methods:
//default and normal constructor
//accessors
//toStringo
public abstract double calCharges0: //calculate the charges
public class WaterPark extends ThemePark
String activity: // surfBeach,waterRide or other
//Methods:
//default and normal constructor
//accessors
/tostring0
public double calCharges) .
public class WildlifePark extends ThemePark
String category: //child or adult
//Methods:
//default and normal constructor
//accessors
/toString)
public double calCharges) .)

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer