Q1. Describe the advantages and applications of the OOP in detail.
Q2. When should we use the inline function and friend function? Describe each with an illustration.
Q3. What do you mean by operator overloading? Write down a C++ code to overload the + operator to concatenate two strings.
Q4. What do you mean by virtual function? Explain why do we require the virtual function? Describe giving appropriate illustration.
Q5. What do you mean by constructors in C++? Describe the default constructor, overloaded constructor and copy constructor. Give appropriate illustrations.
Q6. What are the merits of dynamic memory allocation? Describe its supporting operators ‘new’ and ‘delete’ in C++. Is there any method in C++ to check if the allocation was successful? Illustrate.