Error 598 - CLASS METHOD name expected

METHOD or PROPERTY name expected - A valid METHOD or PROPERTY name must appear in this context.