Setup ? Security Controls ? sharing settings ? Click on ‘Edit’
Apex sharing: Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the share object.