XYZ Tech interview question

Related to Oops concept and .Net.