How to call a method from an existing Class from my Custom class?

So I have a custom class that I need to get the time from the Time.h class.

Device.cpp

#include <Time.h> 
void Device::checkTimedEvent() {
    if(hour() == hour[timedIndex]) {
      Serial.println("TIME!!!!!: ");
    }
}

error

error: ‘((Device*)this)->Device::hour’ cannot be used as a function

How do I expose hour() so Device.cpp can use it? Do I need to make an instance of Time or something?
thanks

You need to create a function in your class that excepts a value, so you can send that function the hour and then to send something back make your function return a value. Your class cant access and data out side of its self directly or at least i don't think it can keeping things simple.

found the answer

#include <Time.h> 
void Device::checkTimedEvent() {
    if(::hour() == hour[timedIndex]) {
      Serial.println("TIME!!!!!: ");
    }
}

use the scope :: operator for hour()