Yes, that looks like the way to pass a float value to the constructor.
To change a value in an existing instance of the class, you would need a setter method.
Type: Posts; User: Norm
Yes, that looks like the way to pass a float value to the constructor.
To change a value in an existing instance of the class, you would need a setter method.
Are you asking how to pass a float value to a constructor?
The current code passes an int to the constructor. Use that as a template to code a float value.