Skip to content

Commit

Permalink
Update extends-bigsai.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rechargeableSophy committed Jan 3, 2023
1 parent 005f9ab commit c8577fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/oo/extends-bigsai.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ equals()方法主要比较两个对象是否相等,因为对象的相等不一

### 向下转型

**向下转型** : 通过父类对象(大范围)实例化子类对象(小范围),在书写上父类对象需要加括号`()`强制转换为子类类型。但父类引用变量实际引用必须是子类对象才能成功转型,这里也用一张图就能很好表示向上转型的逻辑
**向下转型** : 通过父类对象(大范围)实例化子类对象(小范围),在书写上父类对象需要加括号`()`强制转换为子类类型。但父类引用变量实际引用必须是子类对象才能成功转型,这里也用一张图就能很好表示向下转型的逻辑

![](https://img-blog.csdnimg.cn/img_convert/6e1f2e5b4c3cc5d54793a53207764a8e.png)

Expand Down

0 comments on commit c8577fe

Please sign in to comment.