6god
V2EX  ›  问与答

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

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