Error 599 - Requires CLASS but outside of Interfaces

Requires CLASS but outside of Interfaces - This item must be enclosed within a CLASS, but outside of Interfaces.