Using C++, write a class that has the following properties and represents an airline flight from City A to City B. The class name must be Flight. * Flight no. it can be changed as the fleet grows (fleet information is not required for this class) * Departure city * Landing city o take - off and landing city can be changed depending on weather conditions (weather conditions information is not required for this class) * Take-off and landing city cannot be the same * Number of passengers it depends on the reservations * Aerial view distance between two cities * Enter a method that prints flight information on the screen * Flight time it can be changed depending on the route change (route information is not required for this class) O write the necessary methods for other variables that may change depending on them
Using C++, write a class that has the following properties and represents an airline flight from City A to City B. The class name must be Flight.
* Flight no.
it can be changed as the fleet grows (fleet information is not required for this class)
* Departure city
* Landing city
o take - off and landing city can be changed depending on weather conditions (weather conditions information is not required for this class)
* Take-off and landing city cannot be the same
* Number of passengers
it depends on the reservations
* Aerial view distance between two cities
* Enter a method that prints flight information on the screen
* Flight time
it can be changed depending on the route change (route information is not required for this class)
O write the necessary methods for other variables that may change depending on them
Step by step
Solved in 2 steps