Question: 1) Explain what an inline function is, why it is used, and its advantages over the standard C macro created with a #define. 2) Explain

1) Explain what an inline function is, why it is used, and its advantages over the standard C macro created with a #define. 2) Explain what a friend function is and how it is used. 3) Given that a class will have a pointer to memory that is allocated at run time, what member methods and/or operators will be needed to be written (as a minimum) and why? 4) How does a programmer create a function in C++ that will have default values for parameters? 5) Explain the uses of the public and private keywords in class definitions (i.e. what do each of the sections mean). 6) Explain how to create and use a template class. 7) Explain function overloading. 8) Explain the limitations of operator overloading. 9) Explain the use of the keyword explicit in C++.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!