My constructor is public yet it says it cannot access a private member

But I get this error:

2>C:\Users\final\Documents\Unreal
Projects\Nameless2\Source\NUserInterface\NLoginUI\NWidgets\NLoginScreenWidget.cpp(11):
error C2248:
‘ANAccountAPI::ANAccountAPI’: cannot
access private member declared in
class ‘ANAccountAPI’
2>C:\Users\final\Documents\Unreal
Projects\Nameless2\Source\NWeb/NAccounts/NAccountAPI.h(12):
note: see declaration of
‘ANAccountAPI::ANAccountAPI’
2>C:\Users\final\Documents\Unreal
Projects\Nameless2\Source\NWeb/NAccounts/NAccountAPI.h(10):
note: see declaration of
‘ANAccountAPI’

Any suggestions?

You may need to include the ANAccountAPI header, although on the face of it the code seems fine? Is line 11 the constructor call?