Java

  1. Home
  2. Computing & Technology
  3. Java
photo of Paul Leahy

Paul's Java Blog

By Paul Leahy, About.com Guide to Java

Java Term of the Week: Subclass

Saturday November 22, 2008

Following on from the article on inheritance this week, the term today is subclass. A subclass is a class that extends another class. It's worth noting that it can be known as a derived class, extended class or child class.

Whatever you choose to call it, the subclass is a way to extend the functionally of a class that already exists. It inherits all the methods and variables from the class it extends. For example, the Employee class below is a subclass of the Person class:

public class Employee extends Person
{

}

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Java

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Java

  1. Home
  2. Computing & Technology
  3. Java

©2009 About.com, a part of The New York Times Company.

All rights reserved.