This chapter has introduced some of the advanced features of Apex, features that you might not need in every application but that contribute to your knowledge of what is possible with Apex. Before moving on to the next chapter, consider these final points:
Aggregate queries provide a standard, declarative way to perform calculations on groups of records in the database.
Rules governing record sharing can be controlled in Apex code using Apex managed sharing.
You can send and receive emails in Apex code. This provides your applications ...