1. Computing
Send to a Friend via Email

Subclass

By

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
Examples:

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
 {
 
 } 

Glossary:

# 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. Computing
  3. Java
  4. Java Glossary
  5. S
  6. Definition for the Term: Subclass

©2014 About.com. All rights reserved.