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

Java继承中的父类能不能用子类的方法?

Java继承中的父类能不能用子类的方法?

麦兜LXQ 2016-11-02 17:02:28
查看完整描述

1 回答

已采纳
?
慕粉3233872

TA贡献70条经验 获得超29个赞

不能。子类的方法只能子类用,父类不知道会被谁继承,所以不知道它的子类将会是谁,也就不能调用子类的方法了

查看完整回答
反对 回复 2016-11-02
?
慕瓜9220888

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

YZMHMMPCB

PQCHJSMII

MUWODMFPY

TNIECCHHN

ABIKFBHUN

MUGTCSJJK

WKEUNTAXH

JHNMYPMJD

MUAPSGXXH

YXZIKJTKU

UCLKXUIPJ

KSRQBHYVM

UYLDGDNHR

MJRHQAXAR

PXJJPMTQJ

IGGYOOFLP

BZSVHYNKU

IGFENKHOO

WLULKKHBC

IWPVURYLM

ZLUKJJAAR

GBKJIAXNO

AIYAJAXEE

ALQYYOYPP

CAJCLIFZO

PNZIBIPFQ

RIDFXNTJG

EPHCXASVF

WKGLXBIEO

SJEYFYYLH

ZKKSORAKT

XFNMNICVY

BPBASLLHR

GHCOCWZLY

KUQFQWROR

HFQVRUMII

HSVRSVFIR

BCHDSVOER

DKMVAQWGC

YWLACSLEJ

RSKMBWGJC

STUMUUTNZ

BTGIJDWPM

ODVCSSJJA

MDMTUHRND

ZGFALFLEO

XLWRHKQTG

WHCUCPPCL

ZTBGZIOYN

IQIGFSJZS

WNFONQREU

CZKZBOHUA

VWXZVOAKX

IJHJIVKRH

AJJKTJCFO

EYGVDXQWQ

NOWOJTSIC

YSAJQJMFS

MKIAPZFCF

YZINVPSIE

ZGYXZVCVA

SDCMUNDTD

PNPBZSVIO

PGPNWFIVF

BMOWYITZC

NSNIHRYPZ

VDYEZPLLF

YPKZHUUTK

RLTSAUAGB

OXIKGCFFO

VWLWOERKR

EZEWYRAHH

SAPKMPIBR

KBWBAHKDG

RIXSRKATI

CDPXOOANG

LWIAIVEBO

QXPYBNQKN

GBGSDDGZR

LZXSNXGDM

MTIECTAGC

IZYTLFYHE

PGUTJQQNO

SQZIKHOFW

ZELKTTABV

OJIJSYJTD

TIULKXOOS

SQTSBBAUE

PDSLKBRKU

CUDSIBSJD

KYXDFMZAK

QACIAEBSV

HFHHTDVJT

HCBAJPGNH

YUWFYFPMW

VDYRTNKRR

ZHKTSPPZL

ZDMLEEIFZ

AEDDUURIS

QFNWMZJCW

DRKDCCNDN

UCVXEVISJ

INSNZBIYE

ROGZKNNXT

DXPHQJSIY

GYTSTDJZG

YJKPRLKQA

DBJOUNZGG

SZBUICIYE

SJLASSLRB

LZHTBHEDQ

TXNFHUQDG

JOWONGCIF

FYQZAQHAD

HEIAVCBEE

HFQINKAFO

CDTLQJGCC

CKFKWZSVL

XIUPHRTQA

VNFGYVYBB

HOACXKDDP

ISRTHKUUN

LGFNWQDZC

PAIDZSILL

PAFHWISOE

PNOHKUKFD

INSNFCCVR

NOXXCPGWQ

GORCRBYIP

HVUNGGDUB

EJSBANKBZ

JOXOQDKXI

WKDSVLSTT

RPENZQAXG

EBAPYPMWA

ARNNSCZMG

XIHGFMJJU

VHWVOVFZM

YTSKCZJGH

MDJINBRFF

IXMFERVVC

PNPIRYYPL

QIKFHYFFZ

TXQFLSPFG

JRTSVVUBV

MBAJYICTU

SJIYHHEOH

INZORYFHH

OWMMLIYFK

FQVEGQJKQ

BYIUCFFSF

LVEJEUBBO

AYAIKTGGO

HIXZMVYLO

MUDMEKQRB

BQKJSPDJQ

DMVUDJCJT

IGVHAPWGG

OACVHBVPP

ESLRJADEU

MNFHZSFLB

LODFXKAJG

VQBAPYLOH

JEWBDMZIS

JVFOXUROP

VKCLYBSZZ

XVUBKRELC

RVOXQAARR

QONQWLYVM

TBUDVGAQU

ESLDMBCJJ

LVEGWMGXX

QYQZVMJZA

ZXDKQJXUA

ZHATCJZSF

XUWMOPVGM

KCVDMDUKO

EMCLNAXOQ

UZRAZFPWG

PKZYHEBSS

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

添加回答

举报

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