6god
V2EX  ›  问与答

java 中 AAA a = new BBB() AAA 和 BBB 不一样 是什么情况呢?

  •  1
     
  •   6god · Sep 15, 2015 · 2120 views
    This topic created in 4073 days ago, the information mentioned may be changed or developed.
    breeswish
    breeswish
    Sep 15, 2015
    1
    AAA 可以是 BBB 的基类
    caiyue1993
    caiyue1993
    Sep 16, 2015
    2
    AAA 可以是接口,而 BBB 是其具体的实现
    yongzhong
    yongzhong
    Sep 16, 2015
    3
    java 多态
    Ouyangan
    Ouyangan
    Sep 16, 2015
    4
    AAA -动物 --> BBB-小狗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4488 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 06:10 · PVG 14:10 · LAX 22:10 · JFK 01:10
    ♥ Do have faith in what you're doing.