CS 1130: Transition to OO Programming
Module 1, Part 5
Objects and Classes
This part 5 introduces you to the notions of object and class, as well as associated concepts that are needed in the beginning. The reading for this part is Gries/Gries, Section 1.3, pp. 30-41.
1. Objects as Manila Folders, Classes as File DrawersWeb Lecture
Comments: Learn what a class and an object are, through an analogy. The analogy abstracts away from the computer, hiding unnecessary details and making the concepts easier to understand. Later, you can learn something about how these concepts are implemented in the machine itself. But for now, the emphasis is on ease of understanding.
Self-help Exercises: Drawing Objects
2. Creating and referencing objects.Web Lecture
Comments: Learn about the type of object names for a class, how to reference a component (method or field) of an object, and the Java expression for creating an object.
Self-help Exercises: Evaluating new-Expressions