- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
类变量(Class variable)
类变量(Class variable)
Class variables: class variables are variables shared by all objects of that class, and any object of that class accesses the same value when accessing it,
Similarly, when any object of that class modifies it, the same variable is modified.
Access modifier static data type variable name
Public static int count;
Switch (conditional expression) case constant 1: statement 1; case constant 2: Statement 2;...; default: statement;
The type of the constant agrees with the conditional expression
And the type of conditional expression is byte, short, int, char, enum
overload
The method name is the same
There are at least one difference in the order of number of parameter types for the method
The return type of the method can vary
Method modifiers can vary
Only the return type is different and cannot be overloaded
The overwrite (overwrite) method of the return type, parameter, and method name of the method is exactly the same as the return type parameter method name of the parent class method
The modification scope of a subclass method must not be less than that of the parent class
Polymorphism refers to a method that is invoked in a different subclass by pointing to a pointer to a parent class
Final can modify variables or methods
1., you can use the final keyword modifier when you dont want a method of quilt class override (override) for the parent class
2. When you dont want the value of a variable in the class modified, you can use the final modifier
Final modified variables, also called constants, are generally named after xx_xx_xx
Final modified variables must be assigned at the time they are defined and can not be assigned later
3., when you dont want the class to be inherited, you can use final to modify it
recursion
1, the meaning of calling subroutine:
In the process and function of learning, we know that the general form of call subroutine is: the main program call subroutine A, subroutine A call subroutine B, as shown in figure, the process is
您可能关注的文档
- 济南市城市生活垃圾处置管理办法(Measures for the administration of municipal solid waste disposal in Ji'nan).doc
- 济南市城市建设拆迁管理办法(Measures for the administration of demolition and relocation of urban construction in Ji'nan).doc
- 济南特色小吃(Ji'nan special snacks).doc
- 济宁风俗二(Jining customs two).doc
- 济慈诗歌唯美意境的营造手法(The construction of aesthetic artistic conception in Keats's Poetry).doc
- 济源双汇退赔经销商货款 双汇发展资产注入进程或生变管理(Jiyuan Shuanghui Shuanghui development loan dealers restitution of assets into the process or change management).doc
- 浩强工具使用必读(Greatstrong tools use reading).doc
- 浏览器故障排除方法(Browser troubleshooting).doc
- 浩方常见问题之解决V2.28(To solve the common problems of V2.28 ho).doc
- 浪漫的小招数(Romantic tricks).doc
- 类比推理中需要注意的几点要求(Some requirements that should be paid attention to in analogical reasoning).doc
- 类的继承作用(Class inheritance).doc
- 精华驴友线— 张家界自助游最深度玩转经历( 费用分解+精美图片)(Elite Alice line - Zhangjiajie self-help travel the deepest depth of fun experience (cost decomposition + exquisite picture)).doc
- 精品软件序列号(Boutique software serial number).doc
- 精妙SQL语句(二)(Subtle SQL statements (two)).doc
- 精心谋划未雨绸缪(Plan carefully for a rainy day).doc
- 精益生产推行克服障碍的行动和途径(Lean production implementation of action and ways to overcome obstacles).doc
- 精神科伦理宣言(Ethical declaration of Psychiatry).doc
- 精神科规培(Psychiatric regulation).doc
- 精教材相关章节部分答案(Refined teaching materials related chapters section of the answer).doc
文档评论(0)