CS 1114 Lecture Notes - Lecture 8: Vending Machine

164 views2 pages

Document Summary

Homework: reading vii (textbook chapter v) due s, 10/22 at 23:59; homework vi due s, 10/22 at 23:59. See string methods on last slide of week vii notes. Upcoming assignments: begin lab viii due f, 10/20 at 16:30; complete program iii due th, 10/19 at 23:59. *notice: today"s lesson is not in the textbook. Notes: the three terms listed in today"s objectives all have to do with objects working together. One object knows about other objects through its fields. The other objects may be meaningful or useful on their own and accessible outside the first object. Usually, the other objects are passed into the first one in its constructor or via setter methods. Composition refers to one object made of other objects. Remember that the whole owns the parts; the primary object contains/owns its pieces. They are typically not provided from outside the objet. The larger object is built from the pieces in some way.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents