Deloitte Interview Question

What is inheritance? Explain with code. Describe projects in detail.