Question: String Return for getInforSave method I have this classes AirPlane. CargoAirPlane. Private AirPlane. CommericalAirPlane AirPlane fields : name year both are string (super class) Commerical

String Return for getInforSave method
I have this classes AirPlane. CargoAirPlane. Private AirPlane. CommericalAirPlane AirPlane fields : name year both are string (super class) Commerical AirPlane Fields : capPassengers: integer CargoAirPlane: cargo Tonnage: int Private Airpplane: capNumberint How can I write a String return that consist the class name and all the fields sepatarated by a# for the subclass and the Superclass AirPlane. The string retum should be written in object oriented way. Pls no reflection or introspection way The commercial cargo and private plane are subclass of the Airplane Example for a CargoAiplane#Mircle#1969#45000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
