01-11-2012, 01:45 PM
Identifiers & Primitive Types
Identifiers.ppt (Size: 44.5 KB / Downloads: 18)
Updates
On-Line Schedule Update:
Correction: 'Extra' HW Assignments removed\
Workshop #1
CS161Applet or TrivialApplet ?
Do not use a # symbol in the Project name
Class name change relates three things:
Name of the class in the file, Name of the file, reference from HTML file
Do this program at Hoveland or Dearborn!
See \classes\cs\cs161\Documents CS161Template.doc
At Hoveland
You may need to exit your project and reload if after changing the class name
Java & OOP
Java is an Object Oriented Programming language (OOP)
What is OOP?
It is not specifically procedural
A class is a template or a design
A class has information (data)
A class has actions (methods)
An object is a specific thing based on the design
How do we name classes, data, methods, and objects?
Identifier Rules
An Identifier:
May have any number of letters, digits, underscores, or the $ sign
Case is significant
Must not start with a digit
May not have any character not listed above
May not be a reserved word