Firstly create the class called To Create any class we use the keyword class followed by the class name.
In the class, we declared three variable one type integer called " hours" The second is type boolean called "isTicking" and the last one is also integer called "diff".
They all are three variables are private it means they are not accessible outside the class.