9
Anatomy of a Program CIT 270 Java Programming

Anatomy of a Program

  • Upload
    sakina

  • View
    52

  • Download
    0

Embed Size (px)

DESCRIPTION

Anatomy of a Program. CIT 270 Java Programming. Class name must match file name in spelling and capitalization Class names should start with a capital letter, no spaces (if you’re using more than one word, capitalize the beginning of each word). Headers have to be followed by a brace. - PowerPoint PPT Presentation

Citation preview

Anatomy of a Program

Anatomy of a ProgramCIT 270Java Programming

Class name must match file name in spelling and capitalizationClass names should start with a capital letter, no spaces (if youre using more than one word, capitalize the beginning of each word).Headers have to be followed by a brace. Closing braces should match opening braces in vertical alignment

Methods are created by the programmer or created by JavaAll method names begin with a lowercase letterMethod names are followed by parenthesesInside the parentheses are the arguments or stuff that the method needs in order to do its job.

All coding lines (other than headers and comments) need a semicolon at the end;Java applications that you plan to run, or execute, must have a main() method