Write Java todayCodeIt is very interesting to find a ruby feature, that is, calling any method has a return value.
In JavaBean, call the Set Method and return void. to initialize an object, you must write multiple statements.
For example
Help
12345 |
Xxxbean xx = new xxxbean (); XX. setname (name ); XX. setage (AGE ); |
In Ruby, XX. setname (name). setage (AGE) is used for a row of statements, which is highly efficient.
After reading the IO language again, I finally understood what prototype in Javascript means. prototype is the object type. It is a bit similar to object-oriented class, but the prototype is also an object. You can add a method to a type. All objects of this type have this method. This is unknown for the moment.
I/O is based on the message mechanism. I still don't understand the difference between message-based and stack-based calls. Objective C is based on message calls. From the implementation principle, it should be to package method calls into a message and process messages cyclically.