Explore BrainMass

Explore BrainMass

    Super keyword in Java

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Read this article from the Sun website: http://paul.rutgers.edu/java_tutorial/java/javaOO/subclass.html

    Concerning classes and inheritance. Why is the super keyword so important? Present examples of how inheritance can be found in real-life situations

    © BrainMass Inc. brainmass.com October 9, 2019, 7:05 pm ad1c9bdddf

    Solution Preview

    As you can read in the article: "super is a Java language keyword that allows a method to refer to hidden variables and overriden methods of the superclass. ".

    This is important only to add flexibility to the language. It is like implicit type conversion - which is convenient to avoid routine explicit conversions (int to long; short to int etc.).

    Inheritance involves building upon an existing class so that additional ...

    Solution Summary

    The expert examines super keywords in Java.