For faster navigation, this Iframe is preloading the Wikiwand page for 虚设代码.

虚设代码

程式设计中,虚设代码(dummy code)是插入在程式骨干中,用以假装处理、并防止编译时的错误讯息。它可能包含一个空的函式宣告,或者令函式返回正确的结果,仅仅是为了一个简单的测试,以此观察是否能从已知的代码得到预期的反应。以虚设代码建立的程式骨干,类似于假码,不过其允许语法分析编译并且测试代码。虚设代码促进由上而下的设计过程,系统的部分功能以完整的高阶结构设计和编写,然后再针对专案需求完成细节方面的扩充。

面向对象程式设计中,虚设代码相当于抽象方法

参阅

[编辑]
{{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?