Programming Languages (CS302 2006S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[CSC302 1999S]
Back to Scheme Semantics (3). On to Java as Object-Oriented Language.
Held: Monday, February 27, 2006
Summary: Today we begin our exploration of object-oriented programming.
Related Pages:
Assignments
Notes:
Overview:
Sam's grounding quote (emphasis mine) from Nygaard and Dahl
The principle extensions which convert ___ to ___ provide the ability to:
1. Declare a class
2. Generate objects of the declared class
3. Name the generated objects
4. Form a hierarchical structure of class declarations
- Sketchpad.
- Simula and Simula 67: Modeling.
- Smalltalk (and its variants): Purity; Language as environment.
- CLOS (early 1980's): Objects in LISP
- Many years of oop as primarily research topic.
- C++: Add some object-oriented features to C.
- Java: Do C++ right.
Polymorphism vs. Overloading.
- Both polymorphism and overloading permit a method to behave differently based on its parameters.
- In overloading, you must write different versions of the method for each set of parameters.
- In polymorphism, you write one method, and it behaves differently by using methods of different objects.
- Of course, those different objects needed to implement different versions of the same called method (or methods).
- Consider the simple example of square roots.
Back to Scheme Semantics (3). On to Java as Object-Oriented Language.
[Skip to Body]
Primary: [Front Door] [Current] [Glance] - [Honesty] [Instructions] [Links]
Groupings: [EBoards] [Examples] [Exams] [Handouts] [Homework] [Labs] [Outlines] [Readings] [Reference]
Misc: [SamR] [CSC302 1999S]Disclaimer: I usually create these pages
on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.This document was generated by Siteweaver on Wed May 10 09:02:52 2006.
The source to the document was last modified on Thu Jan 12 09:00:37 2006.
This document may be found athttp://www.cs.grinnell.edu/~rebelsky/Courses/CS302/2006S/Outlines/outline.16.html.You may wish to validate this document's HTML ;
Samuel A. Rebelsky, rebelsky@grinnell.edu; Check with Bobby