第五部分:面向对象编程
1.初识面向对象


2.方法回顾和加深

3.对象的创建分析
4.面向对象三大特性



多态注意事项
①多态是方法的多态
②父类和子类,有联系 类型转换异常 ClassCastException
③存在条件:继承关系,方法需要重写,父类引用指向子类
重写:
①需要有继承关系,子类重写父类的方法
②参数列表必须相同
③修饰符:范围可以扩大 public》protected》Default》private
④抛出的异常:范围,可以被缩小,但不能扩大
instanceof和类型转换
5.抽象类和接口



6.内部类及OOP实战
