basic features of object-oriented languages:
1. All things are objects.
2. Programs are collections of objects that tell each other what they want to do by sending messages.
3. Each object is its own storage composed of other objects.
4. Each object has its type.
5. All objects of a particular type can receive the same message.
Access qualifier for Java: Public, private, protected. an Access qualifier is not set to a package access permission.
C + + is not dynamically bound by default (add virtual), Java by default, more inclined to object-oriented.
Upward Transformation (polymorphic invocation), downward transition (container retrieve object-parameterized type)
Java Dynamic memory allocation: All objects are inherited from a single-rooted class object and can only be created on the heap.
such as: string s = new String ("123"); s in the stack, the object "123" is in the heap, S points to "123".
Concurrent programming: Java built-in, shared resources: A task locks a resource, completes its tasks, and then releases the resource lock so that other tasks can use the resource.
Object-oriented : The object that is used to represent the problem space, and the message that is sent to these objects to represent the behavior within this space.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Introduction to Java-objects