#Syntax Error

14 messages · Page 1 of 1 (latest)

stark sparrow
#

Please tell me how to fix this error.

opal moat
#

if you want to call a static method, it's ClassName.methodName(parameters)

stark sparrow
#

erm

opal moat
#

If you want to call a non-static method, it's objectName.methodName(parameters)

#

not with the class name

stark sparrow
#

but what is the object name

#

🤔

opal moat
#

you have two different CurrencyConverters - you need to choose one to call the method on

#

In your case, those are yenConverter and euroConverter

stark sparrow
#

why there are errors 🤔

#

nth

#

I typed wrong number