answersLogoWhite

0

OOP, is to write software in objected-oriented fashion. It will be very difficult to do this with a non-objected oriented computer language. Any objected oriented computer language must have INHERITANCE feature to be an OO language. Actually, to be called object-oriented of anything, inheritance is a must. Without inheritance, it will not be OO (of anything).

Like any feature, characteristic, or property of "something" (oop in this question), the "importance" may only be concluded or derived from understanding it and perhaps even applying it. Inheritance is built into OOP, try to apply it, then you will understand its importance and perhaps discover its weakness!

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
ReneRene
Change my mind. I dare you.
Chat with Rene
More answers

You don't need inheritance. But it is often useful to create new classes of objects from existing classes. Rather than duplicate the code, you can inherit the generic code from the existing class and modify its behaviour in the derived class to suit more specific needs. The original class is then known as a base class, and you can derive several different classes from the same base class, which creates a "kind of" relationship between the derived classes and their common base class. Thus different classes can be treated as the same kind of object: the base class.

User Avatar

Wiki User

12y ago
User Avatar

This is a trick question. .Net has no inheritance per se.

User Avatar

Wiki User

14y ago
User Avatar

  1. To centrally place logic that is common to multiple places
  2. To enable reuse and to reduce code duplication
User Avatar

Wiki User

13y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Why Inheritance is required in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp