Answer & Explanation:I have upload the work for you
hw3__1_.docx
Unformatted Attachment Preview
HW3
Question 1: (1 pt)
What is the difference between inline functions and regular functions? Which one
is faster?
Question 2: (1 pt)
Define the function overloading and give an example.
Question 3: (1 pt)
What is the difference between using file open mode flags ios::out and ios::app
with Ofstream?
Question 4: (1 pt)
What is a class destructor and what is it used for. Can we have more than one
destructor per class? Justify.
Question 5: (1 pt)
Define the three ways of passing objects to function and when each one is used.
…
Purchase answer to see full
attachment