infiniX (India) Interview Question

Question - OOPs in Java