April 2019
Intermediate to advanced
360 pages
9h 17m
English
The ControlBox class constructor sets the initial values when an instance of the class is instantiated. The power will be set to off based on the Boolean value of false, and the initial slidervalue will be set to 0:
// Constructorpublic ControlBox () { poweredOn = false; // default value sliderValue = 0; // default value}
The ControlBox class constructor does not take any arguments and sets default values.
Read now
Unlock full access