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