This step-by-step tutorial shows how to create a simple Apex class and trigger. It also shows how to deploy these components to a production organization.
This tutorial is based on a custom object called Book that is created in the first step. This custom object is updated through a trigger.