CSC/ECE 517 Summer 2008/wiki1 8 smr

From Expertiza_Wiki
Jump to navigation Jump to search

In Lecture 7, we consider prototype-based programming in Ruby. The example that is given is somehwhat artificial. Can you identify real tasks that are easier with prototype-based programming than with class-based programming? Give the code, at least in outline.

...


References

Programming Ruby: The Pragmatic Programmers' Guide | Taw's blog: Prototype-based Ruby | Wikipedia: Prototype-based programming | Softpanoroma: Prototype Based Object-Oriented Programming | RUBY-DOC.ORG