content








Content










2.4
Object
Terminology Applied to a Java Program




2.4.1



Class
definition







The first line of the program is the class
definition. It includes the word
class
and a name for the class Person:

public class Person

The definition follows and is enclosed by
a matching pair of braces.

public class Person
{
}

The keyword public
allows another class to use it. Public classes must be defined in
separate files.











Wyszukiwarka

Podobne podstrony:
content
content
content
content
content
content
content
content
content
function domnode get content
content
content
content
content
content
content

więcej podobnych podstron