From: "Stephan Kämper" Date: 2005-01-24T22:05:58+09:00 Subject: Re: A question (and answer) for the Ruby FAQ: override and overload Michael Neumann wrote: > Stephan K�mper wrote: > >> before I go ahead and post my proposal directly to the FAQ site, I >> though I'd better share the proposal here... >> >> I tend to add this question, as it regularly is touched here in >> discussions and questions: >> >> What's with 'overloading' and 'overriding' methods in Ruby? And what's >> the difference between them anyway? > > > Overloading usually means in C++ or Java: > > void my_method(); > void my_method(int arg); > void my_method(int arg, char* x); > > I.e. static polymorphism based on method signatures (the matching method > is found at compile time, hence "static"). > In Ruby, we don't have this kind of polymorhphism. Okay we can emulate > this using: Yes, I know that. I just suggested to have this question (and answer) added to the FAQ. And I actually volunteer to do so. :-) Happy rubying Stephan