Seven weeks and seven languages (3)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.