Java基础知识日积月累(Tip of the Day10)

目录

1.寻找属性值如果没有就向上原则,如果有就就近原则

2.super和this的用法

3.方法重写的注意事项

4.this和super的访问格式

5.权限修饰符

6.继承中的构造方法都有super

7.jdk省略的东西

8.super和this必须放在第一行

9.super关键字内存中的作用

10.java开闭原则设计和高内低耦


1.寻找属性值如果没有就向上原则,如果有就就近原则

Java基础知识日积月累(Tip of the Day10)

2.super和this的用法

Java基础知识日积月累(Tip of the Day10)

3.方法重写的注意事项

Java基础知识日积月累(Tip of the Day10)

4.this和super的访问格式

Java基础知识日积月累(Tip of the Day10)

5.权限修饰符

Java基础知识日积月累(Tip of the Day10)

6.继承中的构造方法都有super

Java基础知识日积月累(Tip of the Day10)

7.jdk省略的东西

Java基础知识日积月累(Tip of the Day10)

8.super和this必须放在第一行

Java基础知识日积月累(Tip of the Day10)

9.super关键字内存中的作用

Java基础知识日积月累(Tip of the Day10)

其实在继承中父类并不知道你子类的调用所以多态访问时如果不重写根本就访问不到子类的任何数据

10.java开闭原则设计和高内低耦

Java基础知识日积月累(Tip of the Day10)