6god
V2EX  ›  问与答

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

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