*类与类的关系
1、is.....a:继承
例如:Student is a Person
2、has....a:拥有
例如:Student has a Phone
*内部类
1、内部类对象创建
A.B b =new A().new B();
2.静态内部类
A.B b = new A.B();
3.匿名内部类
接口名称(抽象类) 对象名 = new 接口名(){
//接口方法的覆盖
}
*类与类的关系
1、is.....a:继承
例如:Student is a Person
2、has....a:拥有
例如:Student has a Phone
*内部类
1、内部类对象创建
A.B b =new A().new B();
2.静态内部类
A.B b = new A.B();
3.匿名内部类
接口名称(抽象类) 对象名 = new 接口名(){
//接口方法的覆盖
}