function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
baby prasanthi pattapubaby prasanthi pattapu 

Create a unit test for a simple Apex trigger,•The Apex class to test is called 'VerifyDate', and the code is available here. Copy and paste this class into your Developer Edition via the Developer Console.

baby prasanthi pattapubaby prasanthi pattapu
when i try to create an apex class it  is giving error, not a legal name VerifyDate
JyothsnaJyothsna (Salesforce Developers) 
Hi Prasanthi,

When you create a class please remove spaces before the name. Please check the below screenshots for your reference.

Space before the class name:

User-added image

Error:
User-added image


Class name with no spaces:

User-added image

Hope this helps you!
Best Regards,
Jyothsna