Philips interview question

Oops concept. Different types and it's functions