PthinkS interview question

About oops concepts and there syntaxs