1)(a) prepare down the difference between automatic type conversion and type casting? Also, provide a appropriate C++ code to demonstrate both.
(b) Which C++ header file(s) will be fundamentally needed to be included to run/ execute the following C++ code?
void main( )
int Eno=123, char Ename[ ]=”Rehan Swamp”;
2)(a) What do you mean by Polymorphism.? Also, provide the ex in C++ to demonstrate the same
(b) Answer the problems given below based on the following:
long CID; //Chairperson Identification Number
char Description ;
int DID; //Director ID
class Company: private Chairperson, public Director
int CID; //Company ID
char City, Country;
(i) Which kind of inheritance out of the following is specifically is demonstrated in the above C++ code?
(a) Single Level Inheritance
(b) Multi Level Inheritance
(c) Multiple Inheritance
(ii) prepare down the names of data members, which are accessible by objects of class type Company.
(iii) prepare down the names of all member functions that are accessible by objects of class type Company.
(iv) prepare down the names of all members that are accessible from member functions of class Director.