XYZ interview question

Technical question on oops dbms