anonymous class
Technology› Knowledge Management
Semantic Web
An unnamed class. When restrictions are used to describe classes, they actually specify anonymous superclasses of the class being described. For example, we could say that MargheritaPizza is a sub-class of, amongst other things, Pizza and also a subclass of the things that have at least one topping that is MozzarellaTopping. The anonymous class contains all of the individuals that satisfy the restriction.
So, while you may not explicitly define an anonymous class in an ontology, a reasoner may represent anonymous classes based on the restrictions that you have given to other classes.
Java
A class created without a class name. Such a class will be an sub class or an implementation of an interface, and is usually created as an actual argument or returned as a method result. For instance
quitButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ System.exit(0); } });