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?
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.