Computer Science 433
Programming Languages
Fall 2014, The College of Saint Rose
Lecture 23: Subprograms Wrapup; Encapsulation
Date: Wednesday, November 19, 2014
Agenda
- Announcements
- Program/Problem Set 9: Control and Subprograms [HTML] [PDF] continues
- Scheduling of project presentations
- Subprograms
- Look back at callbacks: one more example
- Coroutines
- Subroutine implementation
- Encapsulation
Lecture 23 Assignment
Due at the start of class, Monday, November 24.
Please submit answers to these questions
in Submission
Box under "LA23" or in hard copy by the
start of our next class. We will discuss these questions at the
start of class, so no late submissions are accepted. Please be sure
that your name is clearly indicated in all submissions.
The readings for next class are Sebesta Chapter 11.
- Sebesta Problem Set 4, p. 520 (3 points).
- Sebesta Problem Set 12, p. 521 (3 points).
Terminology
- coroutines
- symmetric control
- coroutine resume
- abstraction
- encapsulation
- abstract data type (ADT)
- class
- information hiding/protection levels
- constructors/destructors
- encapsulation mechanisms
- separation of interface from implementation
- public/protected/private/package scope
- parameterized ADTs
- autoboxing/autounboxing
- erasure
- namespace encapsulation
Examples
- qsort_examples
- mips-factorial
- m68k-gcd
- javageneric
- cppvector
- javaerasure
Links