Fighters in Java-classes and objects

Source: Internet
Author: User

1. The Java language Features- object-oriented programming . Everything is object, each object, we write a class that describes the behavior and properties of the object, the class is the description of the object, and the object is an instance of the class.

2. Instantiate an object, in Java, the new keyword is used to instantiate an object, the new operator creates an object in memory, and returns a reference to the newly created object.

3. The This keyword. Each object can use this to refer to itself, and if a method of a class needs to access a member variable or other method of the class itself, it should be referenced with this.

4. This chapter is a difficult, comparative abstraction, and hopefully will be able to make their relationship more thorough in the future. learning, line and strong, and continue to stick to the pony Brother!!!!!!

Fighters in Java-classes and objects

Related Article

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: 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.