Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using c++ language Task (Inheritance and Polymorphism) ***Important Notes*** 1) Submission to be via eLearning ONLY 2) No submissions via email 3) No submissions after
using c++ language
Task (Inheritance and Polymorphism) ***Important Notes*** 1) Submission to be via eLearning ONLY 2) No submissions via email 3) No submissions after deadline 4) Zip your project/code (cpp + header files) into 1 single ZIP file called 20xyz-Assignment2.zip (or .rar) where 20xyz is your ID. File name should be: your ID_OOP_HW3.zip, e.g. 20140210_OOPHW3.zip Write your Name and ID number in the main code file as well. Any function that can be declared constant should be done so. 7) Make any necessary validations to inputs 8) Clean the heap as often as necessary Homework Description In your Holidays system, Flights can be categorised into: Outbound and Inbound Date class has int attributes for Day, Month and Year. All Flight objects have attributes: const int FlightNumber, // drawn from a static serial number starting from 1. string Destination; Date *Flight_Date; //from Date class - Use Heap to store it and clean it in the destructor double *Take-Off-Weight; //Use heap to store it and clean in in the destructor Flight.h is given here: IA #include Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started