In the Java(TM) programming language, a type that defines the implementation of a particular kind of object . A class definition defines instance and class variables and methods, as well as specifying the interfaces the class implements and the immediate superclass of the class.