⟩ Explain the advantages of inheritance?
Allows the code to be reused as many times as needed. The base class once defined and once it is compiled, it need not be reworked.
Saves time and effort as the main code need not be written again.
Allows the code to be reused as many times as needed. The base class once defined and once it is compiled, it need not be reworked.
Saves time and effort as the main code need not be written again.
Please explain, do inline functions improve performance?
Explain advantages and disadvantages of using macro and inline functions?
By default, if function with minimum lines of code is declared and defined inside the class becomes Inline function. a. True b. False
described when recursion functions are declared inline?
If an argument to function is declared as const, then a. function can modify the argument b. Function can't modify the argument c. const argment to a function is not possible d. None of these
Default values for function are need to be specified from left to right only. a. True b. False
The Function overloading can also be achieved if two or more functions differ only in their return types. a. True b. False
Described the disadvantages of using macro and inline functions?
Does the inline functions improve performance?
Explain the difference between inline functions and macros?