Aptean interview question

Basic concepts of oops