Give a C++ statement that will change the value of the variable sum to the sum of the values in the variables n1 and n2. The variables are all of type int.
It is legal.
Variables a and b are marked protected in the base class Smart
and so they can be accessed by name in a derived class.
If a and b had instead been marked private, then this would be illegal.