“h”这个词的定义静态" [英] definition of the word " static"

查看:111
本文介绍了“h”这个词的定义静态"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

静态这个词的确切含义是什么?

what exactly does the word "static" mean?

推荐答案

您是否尝试搜索?<​​br />
我们甚至有一篇文章about:Static Keyword Demystified [ ^ ]。
Did you try to search for?
We have even an article about: "Static Keyword Demystified"[^].


很少有人会创建一些名为< a href =https://www.google.com/#hl=zh-CN&safe=off&output=search&sclient=psy-ab&q=static%20programming&oq=&gs_l=&pbx=1& ; BAV = on.2,or.r_gc.r_pw.r_cp.r_qf&安培; FP = ee7ce07c8f77007b&安培; BPCL = 36601534&安培; BIW = 1920&安培;波黑= 911&安培; PF = p&安培; PDL = 300\" >谷歌 [ ^ ],这是免费的,易于使用且真的有效。



请自己尝试谷歌,然后来这里(或任何其他论坛)提问。这里的人不会给出新的定义,但在大多数情况下会指向一篇文章,或者告诉你他们多年来在互联网上阅读这些文章时已经知道了什么。
Few smark folks created something called Google[^], which is free, easy to use and really works.

Please always try to Google it yourself and thn come here (or to any other forum) with questions. People here would not give a new defintion but in most of the cases will point to an article or tell you what they have leart over the years reading those articles on internet.


static = not(动态)

not(动态)=没有特定实例

没有特定实例=类特定

在VB中我们使用共享关键字而不是静态

所以,静态=共享

1级多个实例共享相同的变量/方法



这样,



静态变量&方法可以直接使用classname调用。



实时示例:

你想算数怎么样创建特定类的许多对象

然后在创建该类的新实例时声明静态变量和递增 - 递减值。处理该实例



快乐编码!

:)
static = not(dynamic)
not(dynamic) = no instance specific
no instance specific = class specific
in VB we use Shared Keyword instead of static
so, static = shared
1 class multiple instance sharing same variable/method

so that,

static variables & methods can directly call using classname.

real time example:
you want to count how many objects created of particular class
then declare static variable and increment-decrements value when you are create new instance of that class & dispose that instance

Happy Coding!
:)


这篇关于“h”这个词的定义静态&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆