Object Oriented Programming Basics
Last modified Sunday, 07-Jul-2024 16:06:39 UTC.
- Setting the Mood
- Object Oriented Programming Notions
- The Big Picture
- Programs, classes, and objects
- A program consists of classes
- Classes might be packaged
- Classes have static parts and non-static parts
- Static parts always exist
- Non-static parts define what objects look like
- Objects are created with the new operator
- Classes have methods and data
- Visibility
- Objects can always access private parts of their
classes and objects created from their class.
- Data values
- Data is primitive or reference
- Data is variable or constant
- Methods
- Methods have code and data
- Methods send messages to each other
- Program components
- We're Closet OO Programmers
- Using other classes' (public static) methods
- Creating and using objects from other peoples classes
Exercises
Exam Style Questions