Question: Define a class named TRAIN. Include following members: Data members :- - Train Number - Name of the train - Starting station - Arrival station

Define a class named TRAIN. Include following members:
Data members :-
- Train Number
- Name of the train
- Starting station
- Arrival station
- Departure time
- Arrival time
- Off-day
Member functions
- To initialize members
- To input train details
- To display data

Once you have written the class, write a program that creates four





Once you have written the class, write a program that creates four TRAIN objects and stores the following data in them. TRAIN NAME OF THE OFF-DAY STARTING DEPARTURE ARRIVAL ARRIVAL NO TRAIN STATION TIME STATION TIME 702 SUBARNA FRIDAY DHAKA 16:30 CHATTOGRAM 21:50 EXPRESS 704 MAHANAGAR NO DHAKA 07:45 CHATTOGRAM 14:00 PROVATI 705 TUESDAY DHAKA 10:10 DINAJPUR 21:00 EXPRESS 709 PARABAT TUESDAY DHAKA 06:20 SYLHET 13:00 EXPRESS

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Note This is c program you can not create class in C include include include stdiota using namespace ... View full answer

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 Programming Questions!