1 / 9

Anatomy of a Program

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.

sakina
Download Presentation

Anatomy of a Program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Anatomy of a Program CIT 270 Java Programming

  2. 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. • Closing braces should match opening braces in vertical alignment

  3. Methods are created by the programmer or created by Java • All method names begin with a lowercase letter • Method names are followed by parentheses • Inside the parentheses are the “arguments” or stuff that the method needs in order to do its job.

  4. 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

More Related