Saved Bookmarks
| 1. |
Answer the question from (i) to (iv) based on the given below code(assume all necessary header files are included in program):-(i) Write name of the class whose constructor is invoked first on the creation of a new object of class Country.(ii) Write name of the data members which are accessible through the object of class Country.(iii) List name of the members which are accessible through the member function “void New_Country()”.(iv) What will be the size(in bytes) of an object of class Country & State respectively. |
|
Answer» (i) class City (ii) None (iii) Data members: Country_Id, Country_Name[25], State_Population, City_Population Member functions: Display_Country(), New_State(), Print_State(), Get_Population(), New_City(), Show_City() (iv) 90 bytes for object of class Country & 63 bytes for object of class State |
|