Accenture Interview Question

they asked about basic OOPS concepr