The Artima Developer Community
Sponsored Link

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

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 1 Posted: Oct 22, 2015 9:29 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 1
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 supports class reuse through inheritance and composition. In this two-part article we'll focus on inheritance, one of the fundamental concepts of object-oriented programming. First, you'll learn how to use the extends keyword to derive a child class from a parent class, invoke parent class constructors and methods, and override methods. Then, in Part 2, we'll tour java.lang.Object and its methods. Object is Java's ultimate superclass, from which every other class inherits.

To complete your learning about inheritance, be sure to check out the Java 101 composition and inheritance primer. You'll learn why composition is an important complement to inheritance, and how to use it to guard against issues with encapsulation in your Java programs.

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

Read: Java 101: Inheritance in Java, Part 1

Topic: Ctrl+1 in the Eclipse XML Editor Previous Topic   Next Topic Topic: iText PDFstamper Example

Sponsored Links



Google
  Web Artima.com   

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