|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
RE: RE: My ownby kapper (Chaplain) |
| on Oct 26, 2000 at 22:20 UTC ( #38697=note: print w/ replies, xml ) | Need Help?? |
|
The following code will output Ruby is a great language! So, ruby does actually allow you to extend and redefine it's built-classes.. the example also works if you define a new class which inherits String, instead of using singleton style inheritance.. I have not however tested this with every built-in class, but those I have tried it with, worked fine! Or am I just confusing it with that so-called OO language being hyped by Sun? {grin} He he... probably... I have had alot of beginners getting really confused over the hybrid style of Java...
In Section
Past Polls
|
|
||||||||||||||||||||||