A First Java Program
January 20th, 2016
Text Book Reading
Lecture Code
In Class Exercise
Suppose the Registrar needs us to develop a system that will help
them register students for courses.
Object-Oriented Design/Programming
- Class
- Attributes/Instance Variables
- Methods
- Object (Instance of a Class)
- Access Modifier (public or private)
- Encapsulation - Control access to data (attributes)
- Constructor (Type of method)
Java Conventions
- Class names are upper case.
- Variable names are lower case.
- Method names (except for constructor) are lower case.
Java Key Words
- Words
that have special meaning (i.e. can't use them for
class/variable/method names)
Take-home Exercise
- Do (or work on) Inlab 1.
- Read over Outlab 1 and maybe draw a picture like the lecture
today where instead of making a Student Class, you now have a
GroceryItem Class.