Implementation
Classic
To create a new Apex class, access Setup in SalesForce, and type in "Apex" in the quick search box.
Select "Build ... Develop ... Apex Classes".
Lightning
Access Setup, and search for "Apex" in the search box.
Classic and Lightning
Create a new class. Add the following code:
...