摘要: 一、继承: java的三大特性之一。两个类之间通过extends关键字来描述父子关系,子类便可拥有父类的公共方法和公共属性。子类可以继承父类的方法和属性,子类也可以自己定义没有的方法或者通过覆盖父类的方法来实现扩展。 继承的优点: a.提高了代码的复用性 b.代码的维护性更高 继承语法: publi 阅读全文
posted @ 2019-05-26 23:44 o小兵o 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、编码设置:Windows》preference》Workspace》Other-UTF-8》apply and close; 2、字体大小设置:Windows》preference》font》Colors and Fonts》Basic》Text Font》Edit》... 3、常用快捷键记录: 阅读全文
posted @ 2019-05-26 23:43 o小兵o 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 1、maven下载 地址:http://maven.apache.org/download.cgi 2、解压并配置settings.xml文件 3、Eclipse配置 4、访问中央仓库地址:https://mvnrepository.com 5.新建Maven项目 点击【next】 选maven-a 阅读全文
posted @ 2019-05-26 23:42 o小兵o 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1、Eclipse集成TestNG插件 a.下载TestNG离线插件并解压得到features和plugins两个文件夹; b.将features文件下的org.testng.eclipse_6.9.8.201510130443复制到D:\eclipse\features目录下; c.将plugin 阅读全文
posted @ 2019-05-26 23:41 o小兵o 阅读(2993) 评论(0) 推荐(0) 编辑