Can we create apex classes in production org
|Knowledge Article Number||000005207|
Creating an Apex class in live Production instance is not supported at this time. Only Developer Edition, Sandbox, and Trial Organizations have the ability to create, edit, and delete Apex classes and triggers directly in the Salesforce CRM user interface.
Here's what you should know :
Note: You can only create new triggers from within an Object. You won't find "New" button on the Apex Triggers section in the Setup menu.