problem 1)a) Compare the three access specifiers; Public, Private, and Protected. What are the main advantages and disadvantages of these access specifiers?
(b) Describe the following tem multiple inheritance with the help of at least two different exs.
problem 2)(a) What do you mean by Operator Overloading? Describe it in detail with the help of appropriate exs.
(b) What are the main differences between Friend Functions and Static Functions? Describe them in detail.
problem 3) In a loop, prompt the user to enter name data consisting of a first name, middle initial, last name, and employee number (type unsigned long). Then, using formatted I/O with the insertion (<<) operator, prepare these four data items to an of stream object. Do not forget that strings must be terminated with a space or other whitespace character. When the user indicates that no more name data will be entered, close the of stream object, open an ifstream object, read and display all the data in the file, and terminate the program.
problem 4)(a) What do you mean by throwing an exception? What is the sequence of events when an exception occurs?
(b) prepare a template function which returns average of all the elements of an array. Arguments to the function must be an array name and the size of the array (type int). In main ( ), exercise function with arrays of type int, long, double, and char.
problem 5) prepare a note on the following terms:
• Error Handling
• Virtual Destructors
• Command Line Arguments
• Simple and Multiple Exceptions