The read
function will change its Sales_data
parameter and pass the information back via plain reference.
The print
function won't change its Sales_data
parameter, and by using a reference to const
, we can print const Sales_data
object as well.