... the copy constructor |复制构造函数 to create a new object; |创建一个新的对象; the assignment operator |而分配操作符是//应为“赋值操作符” ...
基于1个网页-相关网页
创建一个新的对象也叫做实例化,这个对象就是类的一个实例。
Creating a new object is called instantiation, and the object is an instance of the class.
您可以在子工作区内创建一个新的对象(图表,符号,或者定义),并将其保存。
You can create a new object (diagram, symbol, or definition) in the child Workspace, and save it.
如果您想要改变一个不可变对象的话,您不会改变它,而是使用修改后的值来创建一个新的对象,并把您的引用指向它。
If you want to change an immutable object, you don't - you create a new object with the changed value and point your reference to it.
应用推荐