1. Technology
Send to a Friend via Email



Businesswoman sitting at a table using laptop
GlobalStock/E+/Getty Images
Definition: A subclass is a class that extends another class. The subclass inherits the state and behaviors of the class it extends.
Also Known As: derived class, child class

Imagine you define a Person class:

 public class Person

A new class can be created by extending the Person class. Here the Employee class is a subclass of the Person class:

 public class Employee extends Person


# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  1. About.com
  2. Technology
  3. Java
  4. Java Glossary
  5. S
  6. Definition for the Term: Subclass

©2014 About.com. All rights reserved.