The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java 101: Inheritance in Java, Part 2

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
Java 101: Inheritance in Java, Part 2 Posted: Oct 22, 2015 11:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: Java 101: Inheritance in Java, Part 2
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From JavaWorld

Advertisement

Java provides a standard class library consisting of thousands of classes and other reference types. Despite the disparity in their capabilities, these types form one massive inheritance hierarchy by directly or indirectly extending the Object class. This is also true for any classes and other reference types that you create.

In the first half of this article you learned the basics of inheritance, specifically how to use the extends and super keywords to derive a child class from a parent class, invoke parent class constructors and methods, override methods, and more. Now we'll turn our focus to the mothership of the Java class inheritance hierarchy, java.lang.Object. Studying Object and its methods will help you gain a more functional understanding of inheritance and how it works in your Java programs. Being familiar with those methods will help you make more sense of Java programs, generally.

To read this article in full or to leave a comment, please click here

Read: Java 101: Inheritance in Java, Part 2

Topic: A beginner’s guide to read and write skew phenomena Previous Topic   Next Topic Topic: Scala extractors infix sample with Rational numbers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use