You need to define the variables at the class level and assign them values in the constructor.
You are defining two different variables with the same names. When the constructor exits, the local...