6god
V2EX  ›  问与答

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

  •  1
     
  •   6god · Sep 15, 2015 · 2154 views
    This topic created in 4097 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   ·   2468 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 04:37 · PVG 12:37 · LAX 20:37 · JFK 23:37
    ♥ Do have faith in what you're doing.