Xilinx interview question

oops concepts