java object-oriented thinking: Classes and Objects

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/sunhua93/article/details/102531282

1. Overview of object-oriented thinking

Overview of
the Java language is an object-oriented programming language, object-oriented programming is an idea, under the guidance of our object-oriented thinking,
using the Java language to design, develop computer programs. The object here refers to the reality of all things, every thing all have their own attributes and behaviors. Face
to the target idea is to computer programming course, referring to the reality of things, the properties of the characteristics of things, behavioral characteristics abstracted, described as a calculated
design machine events. It is different from the process-oriented thinking, the emphasis is achieved by calling the object's behavior, rather than trying to go step by step
operation to achieve.
For example

Features
object-oriented thinking is a more in line with our thinking habits of thought, it can be complex things simple, and we became a commander from the performer.
Object-oriented languages, comprising the three basic characteristics, i.e. encapsulation, inheritance and polymorphism.

 2. Classes and Objects

 3. Definition of class

Guess you like

Origin blog.csdn.net/sunhua93/article/details/102531282