+ All Categories
Home > Documents > Anatomy of a Program

Anatomy of a Program

Date post: 22-Feb-2016
Category:
Upload: sakina
View: 46 times
Download: 0 times
Share this document with a friend
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
Popular Tags:
9
Anatomy of a Program CIT 270 Java Programming
Transcript

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


Recommended