- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
itm 352 simple arrays lecture #
ITM 352Simple Arrays Lecture # Announcements Grades for assignment #1 posted on web site Use your class ID # Exam questions posted on web site Study early! For those who feel they need extra help, come to the extra lab session Friday anytime 12-3pm Today Informal Survey Review: Methods method definition methods and ivars parameters, parameter passing constructors Some example programs: “mini” robot development Simple Arrays Informal Survey Where are you at now? Informal Survey: actions Do you feel you have [too little, too much, just enough] opportunities for programming practice and examples? Informal Survey Overall are you [happy, unhappy] with this class as it stands now? Review Objects and Methods Method calls Calling a method is a way of executing a bunch of Java statements that appear elsewhere. Those statements appear in a method definition, which may be written by you or supplied by the system. To invoke a method, you do not have to know what statements it contains, but you do have to know what they do, and you have to know the method name. Methods carry out an objects behaviors Object messaging: using methods Behaviors are the result of object interaction through messaging Object messaging itself It is very common (and elegant when appropriate) for an object to message itself The special keyword this always refers to the current object any method call that does not begin with a reference implicity has a this in from of it Method calls (cont.) Two flavors of methods: class methods and instance methods. SavitchIn.readLine() is a class method. Class methods are always called using the name of the class (SavitchIn), a period, and then the name of the method (readLine). world.robotLocation()is an instance method. Instance methods are always called using a reference to an object (i.e. an instance of a Class) Method Parameters Methods can accept any number of arguments of any data type each argument must be specified in the method definition se
您可能关注的文档
- Data Managementin theDigital Age.ppt
- DBA Recovery - Untitled.ppt.ppt
- dalin_mcast_cciesg.ppt
- David Nunan Task-Based Language Teaching.ppt
- DBmoto Database.ppt
- deegan5e_ch01.ppt
- deegan5e_ch20.ppt
- DEFY DEFY+ 刷 CM 11 [4.4] 全教程.docx
- Depression & New Deal.ppt
- Derivative Markets 2nd Edition- Robert L.Mcdonald 原版PPT课件_CH03.ppt
- J2ME手机游戏设计案例源代码-SpaceWar_Level.doc
- James Cook University BU1104 Business, Environment and Society in the Tropics Lecture note.pptx
- James Cook University BX3171 Organisational Behaviour Lecture Note.ppt
- JAVA课程第五章 面向对象初级.ppt
- JCTVC-A022.doc
- juniper debug.ppt
- KraussMaffei RIM相关技术.doc
- KWWchap19 - income tax.ppt
- L 9 V C Sematic Difference.ppt
- La Liga Briefing Note 19 Nov 200912.ppt
文档评论(0)