GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — Inheritance in Java - SyntaxDB - Java Syntax Reference
LanguageVersion: SE 8Categories
Object Oriented ProgrammingInheritance in JavaInheritance is used to inherit another class' members, including fields and methods. A child class extends a parent class' members. SyntaxNotesA child class inherits all members from the super class without direct implementation within the child class. If a method is written in the child class with the same name and parameters as one in the parent class, the parent class' method is overwritten. It is good practice to use the @Override annotation when overriding the parent method. With class extension, when referring specifically to a super class member, use the keyword 'super'. Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |