Ask the Expert

Contributions of inheritance in software engineering

What are the contributions of inheritance in software engineering using the Java language?

    Requires Free Membership to View

The Java programming language was object-oriented from the time it was conceived, so it doesn't suffer from the problems you might encounter with some languages that tried to retrofit OOP features after-the-fact. In the area of inheritance, Java provides most of the standard features of an object-oriented language including:

  • The ability to extend a base class private, protected, and public scoped classes, fields, and methods
  • Method overloading and overriding
  • Abstract base classes and methods

    Some aberrations that you do not find with a lot of other object-oriented languages are:

  • The concept of package scope
  • Interface inheritance
  • Multiple inheritance is restricted to interfaces
  • This was first published in November 2004

    There are Comments. Add yours.

     
    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to: