Thoughtinshare Source: Http://www.cnblogs.com/thoughtInShare Welcome reprint, Please also keep this statement. Thank you!
The basic idea of 1,java design is to use class, object, inheritance, encapsulation, message and so on to program programming;
2,class defining =field (state data) +method (behavior)
3, object-oriented three basic features, encapsulation (encapsulation), Inheritance (inheritance), polymorphism (polymorphism);
(1) encapsulation, refers to the object will realize the details of hiding, through the behavior method to expose the function of the object;
(2) Inheritance means that subclasses can obtain the behavior and methods of the parent class by inheriting, in order to realize the reuse of the class;
(3) polymorphic, the same type of object in the execution of the same method, may show a variety of behavioral characteristics;
4, in Java design, in addition to 8 basic data types, everything is an object;
5, the materialization of the class is the object, the abstraction of the object is the class;
The basic features of Java object-oriented