Salesforce interview question

Question from MySQL, OOPS concept