# 9/9 k速記 ## 內部類別 也可用在資訊打包 往外部丟出資訊 ## 向下轉型 * instanceof 判定 父類別存的資訊 是否符合子類別 * 使用上有風險 暫時還不建議使用 ```java= Dog d1 = new Dog(); Anamail a = d; if(a instanceof Dog){ Dog d2 = (Dog) a; //會取回 d1 的所有資料 } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up