Honeywell Interview Question

write code for encapsulation, inheritance