error : use undefined type

When i use variable or Function of other class Show error

.h file

#include "GameFramework/PlayerController.h"
#include "Engine/World.h"
#include "MyClass.geneated.h"

class AOtherClass;

class EUNOPLATFORMER_API AMyClass: public ACharacter


	UPROPERTY() AOtherClass* theOtherClass;

.cpp file

void AMyClass::MyFunc()
	if (theOtherClass->isEnabled) UE_LOG(LogTemp, Display, TEXT("is Enable"));

And Showing Error, Actually i diid not Acess Other Class Functions & Variables in C++, Any Solution please Answer

Did you #include “OtherClass.h” in your cpp file?