|
|
|
|
|
|
|
|
|
|
const
keyword is used to specify that something is immutable - it can't change once it is initialized.Dog
's name would never be changed after it has been christened in a constructor, you could make that a const
. Once it is const
, you could also consider making it public.
|
|