Java SE knowledge Plot:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/75/41/wKiom1YzYm-C37N3AAMPEO9b3n8981.jpg "title=" 01.png "alt=" Wkiom1yzym-c37n3aampeo9b3n8981.jpg "/>
Object-oriented:
Object-oriented (OOP) vs. process-oriented Both are a kind of thought, object-oriented is relative to the process. Process-oriented, emphasizing the functional behavior function objects
L three characteristics of object-oriented Encapsulation (encapsulation), inheritance (inheritance), polymorphic (polymorphism)
Specific examples to understand:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/75/42/wKiom1YzY1KSXGt7AAH6JU7rn4w000.jpg "title=" 02.png "alt=" Wkiom1yzy1ksxgt7aah6ju7rn4w000.jpg "/>
Object Oriented thinking is:
L when the requirement is complete:
1) First find the object with the required function to use.
2) If the object does not exist, create an object with the required functionality.
3) This simplifies development and improves reuse .
A class is a description of a kind of thing, is abstract, an object is an actual existence of each individual of that class, also becomes an "instance".
The Java class includes: attributes: member variables in the corresponding class; Field
Method: The member method in the corresponding class. Method
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/75/3F/wKioL1YzZPSizT6PAAEyyQA5U6A808.jpg "title=" 03.png "alt=" Wkiol1yzzpsizt6paaeyyqa5u6a808.jpg "/>
Syntax format for the class:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/75/3F/wKioL1YzZTahnG4TAAEBHNNvuY4224.jpg "title=" 04.png "alt=" Wkiol1yzztahng4taaebhnnvuy4224.jpg "/>
Example:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/75/3F/wKioL1YzZVfAC5M1AADY5kB2fL4554.jpg "title=" 05.png "alt=" Wkiol1yzzvfac5m1aady5kb2fl4554.jpg "/>
To create a Java custom class:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/75/3F/wKioL1YzZbWxwppTAADsoo3tqAo079.jpg "title=" 06.png "alt=" Wkiol1yzzbwxwpptaadsoo3tqao079.jpg "/>
member variables and local variables in the class:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/75/3F/wKioL1YzZgjhnJJzAAPMC7yf3BQ983.jpg "title=" 07.png "alt=" Wkiol1yzzgjhnjjzaapmc7yf3bq983.jpg "/>
Basic Java Learning 12