Accenture Interview Question

advantages of inheritance in java?