java-Object-oriented
a basic feature
1, object-oriented is relative to process-oriented
2, both are a kind of thought
3, process-oriented emphasis is on functional behavior
4, object-oriented is to encapsulate functionality together
5, object-oriented is based on process-oriented
two methods for defining objects:
The method of noun refinement
1, object-oriented three features: encapsulation inheritance polymorphism
2, development is looking for objects to create objects with no objects
3, find objects to build objects using objects to maintain relationships with objects
Relationship of three classes and objects
Class: A description of real-life transactions
Object: This is the kind of thing, the real existence of the individual
Four Memory
The defined object is in the stack, and the new operator opens up memory in the heap memory
* Five-face question what is object-oriented: *
object-oriented features in addition to examples
For example, a car is an object, it is necessary to find a variety of parts, it is a process-oriented way of thinking
Object-oriented is to let oneself to command a car object, do not have to find the parts themselves, from the executor to the conductor's transformation
Don't answer: Everything in Java is an object
Consider the object first when developing
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
java-Object-oriented concepts