Suppose you have a class whose objects are very, very large. Briefly, describe the advantages and drawbacks of call-by-value and call-by-reference for large objects. Describe a parameter passing mechanism that will allow the safety of call-by-value and the efficiency of call-by-reference.
What will be an ideal response?
Call-by-value protects the caller’s copy of the data from change. However, significant
memory space must be used for the copy in the value parameter and copying data
takes time. Call-by-reference endangers the caller’s data.
The required mechanism uses a const call-by-reference parameter.
You might also like to view...
The ____________________ feature is a better choice than the distribute options on the Align panel when you want to manually distribute objects until you achieve the exact result you are looking for.
Fill in the blank(s) with the appropriate word(s).
A(n) ________ Art graphic is a visual representation of information of which Word provides several different layouts
Fill in the blank(s) with correct word
You create a Public property using a ____.
A. Sub procedure B. Function procedure C. Property procedure D. Set block
A tool that evaluates the workbook’s contents to identify what data and features are not compatible with previous versions.
What will be an ideal response?