It accepts the pin to be read from as an argument from the user of the library and sets the private variable of that particular instance of the class to the one specified. 
For example: Battery bat(0); 
this will tell the constructor to set the private variable to '0', which is the pin the voltage is applied to.
As for the other variables, I can edit it to make the constructor initialize them as well.