Computer Science, asked by sourabh22, 1 year ago

benefits of inheritance?

Answers

Answered by 123456sssu
6
One of the key benefits of inheritance is to minimize the amount of duplicate code in an application by sharing common code amongst several subclasses. Where equivalent code exists in two related classes, the hierarchy can usually be refactored to move the common code up to a mutual superclass.


hope it helps..
Similar questions