Question: Why is inheritance used when creating a new class?
- to protect attributes from unwanted changes
- to delegate coding responsibility more efficiently
- to conserve memory
- to avoid writing duplicate code
Answer: The correct answer of the above question is Option E:to separate class behavior from the more general