Java Sixth Lesson OOP

Source: Internet
Author: User

Java OOP

1. Process-oriented structured programming
Cons: Methods and data structures are all irregular defined anywhere in the program
the data structures to be processed by the method definitions and methods are also defined separately
2. Object: 1 new objects are created, and no influence between the original objects
3. Nouns in demand: objects
verb: Method
4. Method Signature: Contains the method name and the parameter Type class table "Order",
overloads are not related to parameter names, only the order of parameter types is duplicated .
overloading is independent of method return values
5. The construction method has two special rules: The method name of the construction method must be the same as the class name;
construction method does not return a value type
6. Constructor methods are commonly used when creating objects, initializing member variables
7.this: The current object's.

Java Sixth Lesson OOP

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.