Three basic features of class, object and object-oriented programming: inheritance, encapsulation, polymorphism.
Classes are also cited by objects. The three major characteristics are also cited by the object.
Organizing code, encapsulating data
Organize your code through objects and encapsulate the data with objects.
Complicated procedures can be seen.
Object-oriented is called through methods. Write 28 hours of code a day, you are not enough. They are very difficult to get started. Need to look through the whole process. Difficult to get started.
There was a software crisis in the 80 's. The degree of difficulty is increased geometrically.
C language inside has very good thought , the structure body . you can put the car-related variables here. Manage my variables in a structured way very very convenient, C-language Bell Labs, they just want to problem, first divergence, second depth. Adopt a structure-like concept.
So C + + appeared. Organize our code in a class of units
c is to organize our code in a way.
The benefits of object-oriented are particularly great when the program is very large.
Defined:
Variable types other than primitive types in the Java language are referred to as reference types .
Objects in Java are manipulated by reference to reference .
Properties of the class
java--Object-oriented programming (oriented object programme), memory