京东自营 618 + 国补 iPhone 历史最低价          领 618 红包,最高25618元

Java 重载构造函数

重载构造函数
实例源码:
源代码:
执行
执行中...
执行结果:
  • Calling Box2 with coordinates (25,25) and (50,50):
  • Box: <25, 25, 50, 50>
  • Calling Box2 with points (10,10) and (20,20):
  • Box: <10, 10, 20, 20>
  • Calling Box2 with 1 point (10,10), width 50 and height 50:
  • Box: <10, 10, 60, 60>
  •  
    本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。

    编辑于

    关注时代Java

    关注时代Java