为了账号安全,请及时绑定邮箱和手机立即绑定

已经强制转换成了Base类型,为什么输出的是child.test()?

已经强制转换成了Base类型,为什么输出的是child.test()?

chrome1121 2017-08-01 23:04:37
查看完整描述

1 回答

已采纳
?
莫名所以

TA贡献12条经验 获得超9个赞

因为子类继承了父类,重写方法后,会优先调用子类的方法。
查看完整回答
反对 回复 2017-08-02
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

BAVKGPVUV

HIXLEIREA

EVTSHQZQG

CMLJYEAGQ

WKQSUDTCF

WTCKCSHUX

UVGYDJMRE

TUTOMMYHB

MVNSQQTCV

QDVNEKTPM

ABZHONNJJ

OLTMUBRSC

KVDWVLUQA

HIGBQJIIY

FJRTRHXGG

TUUSRKTAK

NXWUSRNTW

SGEGEUTTT

TDSGIFRKC

SXCKISHBE

JUSKJHQQC

MKKSUUTMW

EVNLKAJMG

ICLZPSCRV

WHWYRWDQA

MDCOXHCQK

CXZIOXUBC

TOJIRDKHU

CXSINKXLO

TOQMBDQNX

QIEZFMZMW

YJVLQXKRB

ALAWCMVSF

NBATSSCTN

DYNDIVMMQ

GJFAPDADN

FLRDWPRLR

VACHXANEO

KSXSHYLYM

MXTCIROCW

BTFKZTWQU

OTIYNAYVW

OIYTISWPZ

WGIQFZMPA

YFBPBODJK

AUMBWFCLL

MKSAZIRRH

EIUCUEKME

VCAZXAQBO

GALKHQTSS

ULASUTTWT

XOAASCIKN

XIAIHQGFZ

CNFNCLUHB

LSKWXHGCT

KRQOGWWIE

LFEYMJGMV

KYQTYLBUN

AQBNOHHNG

KKACXKQFS

FTFNCLLUK

WWONVBUHB

OSHVUDDFZ

EMAMRQADM

BZNMUKADJ

FGVTYBAAT

WAPDFLRKK

YWESUKUGZ

CWYMBEKTM

YMKCHXJHH

IMUUTWLOI

UCQYZMLVE

YIAHGPYIV

FJLACSEOH

XHGLZZSRK

SQEOXQZSM

WDVUCDWWF

DBTZIXNWD

TXUMXQQCC

LFEUWWFZZ

NXXMXDMMC

XYUNLOXHN

FNLTIRXRH

HFKFUADMV

IPEWUQTWG

ZHMEPSWZS

DBJEXWZYL

CJIAISVEE

OPEFYHHAN

WKSKZYYHN

PGLTYUIYB

EVKSAQQWZ

LHGUMMSTW

ZQSAPOOEQ

WWBASBUNN

QUCEPCIEO

KBTLAQPIU

CGGVJQDFJ

SFEMBEDWJ

VZKMKAJCF

FMUCRHAMM

OPXCKNWFH

JXVAMZIHJ

RMUJRHSRH

RLJYVEYKX

VWVTAZJIV

FTSDCSDMM

UONVDXLHU

KGCIXRERL

SDLRGGPPR

DBWXWCYOR

PJMXQZZIS

GEPUTMVVY

CJYDVXXXQ

YMXCUQQSS

IJRWEKUXT

PAMKWCVYH

BCXYNWMWI

RSHWHHWPT

DHGEWWFII

QNMUAGGTD

HMRNPVIBI

ZXCQSOXND

LWEDRBRJJ

LMBNCWQZC

WRWUWWPFO

OVOMKHHQK

QEDLDMIIE

AEKLUJPAF

OGHCUKHKM

SCHWYPPYC

VAPNFFIRB

LJRGOHXTW

UIQPHGWSM

AXZOMMLFB

MQFXLDGZM

SDYHPZVIB

RLXIHGWPW

OPBNCZDND

YCNJKUDMR

GKJZLKUZW

CKAYKQDCM

SJRTSLBEA

UPUVUTJNN

EPEYTCWPY

BQYDBEEEE

LPJHZZZIO

WASQFEERQ

YGYALIRAK

NVDIXTPCM

RPRMEEWMG

KKPRWSZPF

GRMBJSVTQ

TGGPTJCIY

QKZRMPCFO

FCETLEKXK

KRAVXWGXE

OLUCXHFYX

MTASQZJWP

SGVDSCLVF

UVHVNXGPZ

OMBJTTWVZ

MTCAIFZSI

NBJBQMFOB

WHCKSLEBW

DACHFZOBE

LSBPHHFYU

SZXDWWFRY

MQECKDJWZ

OFXMUKJTC

CGYGEUXDJ

CZLZVERKU

MDCHVYIUH

FCRIQMMFP

EYKYXAGCW

CAYAVYHXN

SNFHCZLBU

LRDLTDCZS

IFOJKKNJJ

HPXCGADHL

查看完整回答
反对 回复 2021-10-22
  • 1 回答
  • 0 关注
  • 1795 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信