Philips Interview Question

Oops concept. Different types and it's functions