subject

Lab 2.2 struct to classUtilizing the code in 2.1, convert your struct to a class with private data. Use new to allocate space on the heap for your object. You will need to provide complete object oriented code to support your program. That means a class, default constructor, constructor taking five arguments, mutators (setters), accessors (getters), a destructor plus input and output functions. Refer back to airfreight. doc or airfreight. docx for helpful information. In main, create a load object on the heap using the default constructor. Output the contents of the object. Using your input function, set the data up for your object using the following information:uld – Container abbreviation - AYFuldid – AYF97326IBaircraft - 737weight - 1710destination – SMFIn the input function, utilize mutators to set up your dataDestroy your unit object using delete; put a cout to verify the deletionHints:Pass your object from main by reference. This allows your input and output functions to work muchmore easily. You will need this in later labs. Your output should look like this (your output data is different, of course) Unit load type: Pallet
Unit load abbreviation: PMGUnit identifier: PMG12345IB
Aircraft type: 737Unit
weight: 1257
Destination code: SJC
Cargo destructor called

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:10
3. consider the following class definitions: class smart class supersmart: public smart { { public: public: void print() const; void print() const; void set(int, int); void set(int, int, int); int sum(); int manipulate(); smart(); supersmart(); smart(int, int); supersmart(int, int, int); private: private: int x; int z; int y; int secret(); }; }; . which private members, if any, of smart are public members of supersmart? a. which members, functions, and/or data of the class smart are directly accessible in class supersmart?
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Read these lines from beowulf.often scyld scefing seized mead-benches from enemytroops, from many a clan, he terrified warriors, even thoughfirst he was found a waif, best explains why the author includes this information in theexposition? a. to emphasize that a hero must learn to be fierceb. to remember the famous story of a popular heroc. to express sadness about losing the old heroesd. to see whether people still respect the old heroes
Answers: 1
You know the right answer?
Lab 2.2 struct to classUtilizing the code in 2.1, convert your struct to a class with private data....
Questions
question
Mathematics, 20.10.2019 09:20