For faster navigation, this Iframe is preloading the Wikiwand page for 实例.

实例

在电脑系统中,任何时候基于某种模型的一个新的东西被创建后,都可以说该模型已经被实例化。这个实例通常与其他基于同一模型的实例有一个共同的数据结构,但储存在实例中的值是独立的。这样,改变一个实例中的值就不会干扰到其他一些实例的值。

面向对象程式设计中,实例是任何对象的具体实现,创建一个实例被称为实例化。在基于类编程中,一个对象就是一个类的实例,对象由构造函数创建,并由析构函数销毁。该对象可以称为类实例或类对象。并非所有的类都可以被实例化,抽象类就不能被实例化。[1]

参考文献

  1. ^ What is instance? – Definition from WhatIs.com. Whatis.techtarget.com. [February 9, 2014]. (原始内容存档于2021-11-09). 
{{bottomLinkPreText}} {{bottomLinkText}}
实例
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?