Question: . . Create a new Java project called your name. Use the underscore () to replace any space characters. Create a new package in
. . Create a new Java project called your name. Use the underscore () to replace any space characters. Create a new package in this project called assignment2_1. Add the following class to this package: o Flight (attributes: flightID, destination, int> capacity, priorityCode, FType flightType, attributes String day, month, year(which is for date) Methods: O constructor/setters/getters/toString()) FType Enum - international, national, cargo Airline (attribute: ArrayList < Flight> FlightList) Methods: void joinFlight(Flight f) Inserts a flight into the list void landFlight(Flight f) lands flight -- removes flight from the list int size() returns number of aircraft in the list void clear() lands all flights leaving the list empty void display() displays a list of flights in the list. 2
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
Sure heres a Java project that follows your requirements Project Name yourname Package assignment21 ... View full answer
Get step-by-step solutions from verified subject matter experts
