6god
V2EX  ›  问与答

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

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