63 200
Assignments Done
99,3%
Successfully Done
In July 2018

Answer to Question #1208 in C++ for mrt

Question #1208
When should a class be passed by reference and by the value? Why would we use the 'const' key word on variables passed by references?
Expert's answer
When passing class by value we create a local copy. The transfer of disadvantage that use excessive memory. Generally, we pass an object
class by reference. Const qualifier is used to prevent changes to the
object class.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions