Pergunta de entrevista da empresa Honeywell

write code for encapsulation, inheritance