上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 原文:Come in ,Amy. A:Come in B. Shut the door,please. This bedroom's very untidy. B:What must I do Mrs.A? A:Open the window and air the room. A:Then put 阅读全文
posted @ 2019-03-07 13:50 张玉昊 阅读(175) 评论(0) 推荐(0)
摘要: 原文 :Mrs.smith's living room. Mrs.smith's living room is large. There is a television in the room. The television is near the window. There are some ma 阅读全文
posted @ 2019-03-07 13:15 张玉昊 阅读(179) 评论(0) 推荐(0)
摘要: 一、params. 可变参数,无论有几个参数,必须出现在参数列表的最后,可以为可变参数直接传递一个对应类型的数组。 二、ref 引用传递 三、out out 参数在使用之前必须在方法里为out参数赋值。 out参数无法获取实参传来的值。所以在主函数 中,只需声明函数就行。它也是引用。 out一般用在 阅读全文
posted @ 2019-03-07 11:42 张玉昊 阅读(13283) 评论(3) 推荐(1)
摘要: 一、什么是异常? 程序运行时发生的错误。 二、异常处理的一般代码模式。 try{..可能发生异常的代码} catch{..对异常的处理} finally{...无论是否发生异常、是否捕获异常都会执行的代码}。 实例: 简单实例: try中某句代码异常后,后面的代码不会执行,直接跳转到catch fi 阅读全文
posted @ 2019-03-06 17:47 张玉昊 阅读(995) 评论(0) 推荐(0)
摘要: 原文:Mrs.smith's kitchen. Mrs.smith's kitchen is small. There is a refrigerator in the kitchen. The refrigerator is white. It is on the right. There is 阅读全文
posted @ 2019-03-06 13:28 张玉昊 阅读(256) 评论(0) 推荐(0)
摘要: 原文:Which book? A:Give me a book please,B. B:Which book? This one? A:No,not that one. The red one. B:This one? A:Yes,please. B:Here you are. A:Thank yo 阅读全文
posted @ 2019-03-06 13:09 张玉昊 阅读(195) 评论(0) 推荐(0)
摘要: 显示实现接口的作用:解决方法重名问题。 下面例子中,Student类同时继承了两个接口,但两个接口有一个共同名称的方法(有不同的功能),实现接口时只能实现一个,想两个都实现就用显示实现接口。 显示实现接口: 显示接口没有访问修饰符,默认私有的,显示接口实现时是:接口名.方法名 因为显示实现接口默认是 阅读全文
posted @ 2019-03-05 16:02 张玉昊 阅读(316) 评论(0) 推荐(0)
摘要: 原文:tired and thirsty。 A:What's the matter,children? B:We are tired and thirsty. A:Sit down,here. Are you all right now? B:No,we aren't. A:Look there i 阅读全文
posted @ 2019-03-05 13:45 张玉昊 阅读(305) 评论(0) 推荐(0)
摘要: 原文:How do ;you do? A:Come and meet our employees,Mr.B. B:Thank you Mr.A. A:This is ...and this is .... . B:How do you do?. Those women are very hard-w 阅读全文
posted @ 2019-03-05 13:30 张玉昊 阅读(266) 评论(0) 推荐(0)
摘要: 一、什么是接口? 接口就是一种规范协议,约定好遵守某种规范就可以写通用的代码。 定义了一组具有各种功能的方法(只是一种能力,没有具体实现,就像抽象方法一样,“光说不做”)。 理解:内存该做成什么样的:电压多少,插线多少,这是一种国际规范,是接口。而,内存这个东西具体生产出来了,就是实现接口。不管是什 阅读全文
posted @ 2019-03-04 21:21 张玉昊 阅读(1457) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 下一页