What is Inheritance?

Inheritance is what happens when a subclass receives variables or methods from a superclass.

Java does not support multiple inheritance, except in the case of interfaces.

Java Inheritance Syntax

The following class definition causes ar15 to become a subclass of rifle.

public class ar15
   extends rifle {
      instance and class member definitions
   }


Top 5 Free Networking Tools

Bookmark What is Inheritance?

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.