Java   View all facts   Glossary   Help
syntactic unit > definition > class definition
Next definitioninterface definition    Updefinition    Previous definitionvariable definition   

class definition
subjectfact 
class definition added by: JK, 2001-10-19 11:36:22.0
can contain class methods, class variables, instance methods, instance variablesadded by: JK, source: On To Java, 2001-10-19 11:36:22.0
has definition A definition that specifies a class and includes the class bodyadded by: JK, reference: Source 2, 2001-10-19 11:36:22.0
has 1 or more constructors for the classadded by: DS, source: Sun Java Tutorial, question: what if the class is not instantiated?, 2001-10-19 11:36:22.0
has example
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
added by: JK, 2001-10-19 11:36:22.0
has part class declaration, class bodyadded by: JK, 2001-10-19 11:36:22.0
has purpose to define a classadded by: JK, 2001-10-19 11:36:22.0
has syntax
public abstract final class nameOfClass extends Super implements Interfaces
{
ClassBody
}
added by: JK, source: Sun Java Tutorial, 2001-10-19 11:36:22.0
is a subtopic of Classes2001-10-19 11:36:22.0
is stored in source file with the same name as the class and extension .javaadded by: JK, source: On To Java, 2001-10-19 11:36:22.0
is a kind of definitionadded by: JK, 2001-10-19 11:36:22.0
definitioncauses a compiler to set aside memory at compile time2001-10-19 11:36:37.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0