Java   View all facts   Glossary   Help
specification > class > abstract class
Next classancestor    Upclass    Previous classwrapper class   

abstract class comparison table
Subject have syntax rule add is an instance of declare protect is a subtopic of create by name after access extend provide place in represent inherit contain have purpose have access mode omit be the opposite of have example instantiate you implement require to import from order be a descendant of define specify by have access modifier use override have syntax have benefit be a member of be not have have part be
Number class
bold = mandatory
italic = non-terminal
normal font = optional
0 or more methods to the methods it inherits from its superclassabstract classa list of variables, called instance variables, corresponding to data that will be present in each instanceits members from access by other classes or objects using an access modifierExample Classesspecifying the abstract keyword on the first line when you declare the classthe internals of a computer system such as 'Record', 'Table', 'Data', 'Structure', or 'Information'any public class in other packagesonly one superclass0 or more method declarations for all methods needed to implement its programming interface to its subclassesits own source fileseveral similar objectsbehaviour from its superclassdata associated with each objectto hold features that will be inherited by two or more subclasses some or all of the implementation of its methodsconcrete class
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
create an instance of itmore than one interfacehave any abstract methodsa packageelements as follows:
  1. class variables
  2. instance variables
  3. constructors
  4. the most important public methods
  5. methods that are simply used to access variables
  6. private methods
Object classgeneric behaviour1 class definitionan implements clause to declare that it contains methods for each of the operations specified by the interfacemethods that are inherited from the class's superclass
class classname
{ // declarations of variables
// declarations of constructors
// declarations of other methods with public ones first
}
1 named package rather than the default packagefully definedspecificationconstructorfinal

Next classancestor    Upclass    Previous classwrapper class