Get the List of Apex Classes from a Salesforce Org

We can write SOQL query on ApexClass object to get all classes from an Org.

Sample SOQL:

SELECT Name, Status, ApiVersion, CreatedDate FROM ApexClass