I have this public method named GetHoursWorked and a private property named mHoursWorked.
GetHoursWorked code:
Return mHoursWorked
I’m trying to get the value of mHoursWorked by calling the GetHoursWorked method but it displays an error you must use the value returned by this function