Here, you think of yourself as God.
1. Objects
You want to show your friends a graph, if you create a rotating square, a circle, and a triangle, he wants to see which graph you will show him which graph, is object-oriented;
If you create a deformed shape, he will look at the internal series of judgments (because the graphics are many, so the inside will be very complex, and will affect each other) into what he wants to see is the process-oriented.
2. What is the difference between a class and an object?
You're still a god.
You think about what a dog looks like. OK, this is the class, in the program is the Dog.java file (this is just a dog's drawings)
All right, you take the mud, you pinch a puppy as you think, and you live, and that's the object of a puppy. New Dog () is the process you pinch, and the new one gives you a puppy (instantiating a dog object)
Java Learning (ii) objects and classes