CSE 341 Spring 2015 : Unit 7

Notes

Unit 7 Reading

Videos

Introduction to Ruby

Classes and Objects

Object State

Visibility

A Longer Example

Everything is an Object

Class Definitions are Dynamic

Duck Typing

Arrays

Blocks

Using Blocks

Procs

Hashes and Ranges

Subclassing

Why Use Subclassing?

Overriding and Dynamic Dispatch

Method-Lookup Rules, Precisely

Dynamic Dispatch Versus Closures

Dynamic Dispatch Manually in Racket


341 Main