摘要: package com.inter; /** * 继承和接口的关系,单继承,多接口 * java不支持多继承,但可通过接口实现多重继承 */ public class test2 { public static void main(String[] args) { LitterMonkey litterMonkey = new LitterMonkey(); ... 阅读全文
posted @ 2019-09-17 19:11 深南大道 阅读(867) 评论(0) 推荐(0)
摘要: package com.test1; /** * 接口的使用 */ public class test1 { public static void main(String[] args) { //创建Compute Compute compute = new Compute(); //创建Camera Camera camera = new Camera(); //创建Phone Phone ph 阅读全文
posted @ 2019-09-17 17:50 深南大道 阅读(879) 评论(0) 推荐(0)
摘要: 抽象类: 抽象类就是不能使用new方法进行实例化的类(不能被实例化,可以有多个抽象方法),即没有具体实例对象的类,抽象类有点类似于“模板”的作用,目的是根据其格式来创建和修改新的类,对象不能由抽象类直接创建,只可以通过抽象类派生出新的子类,再由其子类来创建对象,当一个类被声明为抽象类时,要在这个类前 阅读全文
posted @ 2019-09-17 17:07 深南大道 阅读(3391) 评论(0) 推荐(0)
摘要: package com.qushida.util; import java.beans.BeanInfo; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.sql.Connection; import java.sql.PreparedStatement; import jav... 阅读全文
posted @ 2019-09-17 16:41 深南大道 阅读(1496) 评论(0) 推荐(0)