Question: Java Coding: Just writing Three classes: 1. A class named: Flight that represents a flight. A Flight object contains following things: A String name, represents

 Java Coding: Just writing Three classes: 1. A class named: Flight

Java Coding: Just writing Three classes: 1. A class named: Flight that represents a flight. A Flight object contains following things: A String name, represents the flight's company name A int parameter, represent the number of passenger in that flight 4 time objects, represent flight's month, date, take off time and reach time A boolean parameter, represents whether the plane full 2. A class name: Price that represents the ticket price of this flight. A price object contains following things: A string name, represents flight company's advertisement A int parameter, represents the flight ticket's price 3. A class named: Time. A time object contains following things: 4 int parameters, represents month, date, hour and minute

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!