Академический Документы
Профессиональный Документы
Культура Документы
ArguS academy
Class Declaration
The first line ( class First ) : declares a
class , which is an object-oriented construct.
JAVA is a true object language thus
everything must be placed inside class.
class is keyword and declares that a new
class definition follows.
First is a JAVA
identifier that specifies the name of class to
be defined.
Braces
Every class definition in JAVA begin
with opening braces { and ends
with a matching closing brace }.
(note:- class definition in C++ ends
with a semicolon)