Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Inheritance is a technique in object-oriented programming in which you derive new classes from existing classes in your code

Inheritance is a technique in object-oriented programming in which you derive new classes from existing classes in your code

Computer Science

Inheritance is a technique in object-oriented programming in which you derive new classes from existing classes in your code. Why might this be useful? Does this technique correspond to any other concepts we have discussed?

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

Inheritance is useful in forming new classes using classes that have already been defined. The new classes, known as derived classes, take over (or inherit) attributes and behaviour of the pre-existing classes, which are referred to as base classes. It is intended to help reuse of existing code with little or no modification.

Inheritance is useful because modules with sufficiently similar interfaces can be share a lot of code, reducing the complexity of the program.

Inheritance corresponds to other concepts such as code reuse, polymorphism, specialization and overiding.

Related Questions