Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Inheritance, Overriding, and Hiding

Java Language Specification, Version Java SE 21 Edition
8.4.8. Inheritance, Overriding, and Hiding

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.4.8

4 Documented Misconceptions

Misconception
AbstractClassMustImplementAbstractMethod
An abstract class must implement all abstract methods defined in its superclass
Misconception
ConcreteClassOnlyImplementDirectAbstract
A concrete class only needs to implement abstract methods declared in its direct supertypes
Misconception
ImplicitInterfaceImplementation
Java implicitly produces implementations of any methods a class inherits from the interfaces it implements
Misconception
NoMethodInheritance
Subclasses inherit fields but not methods

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors