Talk:Object-oriented

From Wikipedia, the free encyclopedia
Revision as of 13:10, 25 February 2009 by imported>Graham87 (fix link)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Why is this useful? A typical procedural language needs different functions for each thing that must be closed. In a object-oriented language, a door, box, cabinet, etc may all provide the same interface, saving the programmer a lot of memorization.

This is silly explanation. One could call all functions *_close or use language which allows close(foo) and close(bar) to be different functions. --Taw