Error - The Apex class "theClassName" is not a legal name.

Suppose the error is  - The Apex class "CreateTaskEmailExample " is not a legal name.

There may be a small space or an illegal character and so this error comes, here remove the space after Example, and the error will go as in Visual.

Visual: https://www.youtube.com/watch?v=5893uIHZjRg

Comments