Capgemini interview question

Where is extends keyword used?