1. Home
  2. Computing & Technology
  3. Java

Superclass

By , About.com Guide

Definition:

A superclass is a class that has been extended by another class. It allows the extending class to inherit its state and behaviors.

Also Known As: base class, parent class
Examples:

Imagine you define a Person class:

public class Person
{

}

A new class can be created by extending this class:

public class Employee extends Person
{

}

The Person class is said to be the superclass of the Employee class.

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

Explore Java
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Java
  4. Java Glossary
  5. S
  6. Definition for the Term: Superclass>

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

All rights reserved.