Create an array of objects of the class


Discuss the below:

Q: Create a C++ program that has a class called flight with the following attributes:

date, flight_no, from, to, seats, price.

Create an array of 3 objects of this class. Write a member function that asks the user for these values, 3 times and write a function that displays these values in a tabular form on the screen.

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create an array of objects of the class
Reference No:- TGS01937038

Now Priced at $20 (50% Discount)

Recommended (96%)

Rated (4.8/5)