深入了解对象和变量在OOP中的作用和相似性

Is conceptually in OOP variables and objects are the same or have same kind of effects. When a variable is used, let's say: string type variable, (and string actually means System.String) it is depended on another class String (and I think that, the namespace System.String has a mechanism to hold the value of the variable and does other defining process internally build, though I haven't seen it yet) and later we can do same operations to the variable with build in method of the class 'String' such as IndexOf(variable). Isn’t the same thing we actually do with an object.

评论