Computer Science 433
Programming Languages
Fall 2014, The College of Saint Rose
Lecture 24: Object-Oriented Programming Support
Date: Monday, November 24, 2014
Agenda
- Announcements
- Program/Problem Set 9: Control and Subprograms [HTML] [PDF] continues
- final exam: 1 hour in class on December 3, 90 minutes (or
so) worth of take home due December 8
- practice final (actual exam from last time) out
- Scheduling of project presentations
- Lecture 23 assignment recap
- Object-oriented programming support
- a rundown of terminology and key issues
- a case study in Java: Bailey's Structure package
Lecture 24 Assignment
Due at the start of class, Monday, December 1.
Please submit answers to these questions
in Submission
Box under "LA24" 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 12.
Compare the text example of the single_linked_list that is
extended by stack_2 and queue_2 in Section 12.5.2 with the
implementation of the StackList and QueueList classes in
Bailey's structure package. (10 points)
Terminology
- object-oriented programming (OOP) paradigm
- inheritance
- classes
- objects
- derived class/subclass
- parent class/superclass
- extends
- instance variables
- class variables
- instance methods
- class methods
- messages
- overriding
- single/multiple inheritance
- polymorphism
- dynamic binding
- virtual method table
- abstract method/virtual method
- exclusivity of objects
- interfaces
- object slicing
Examples
- Structure package source code on mogul.strose.edu in
/home/shared/structure
Links