Constructor构造方法
摘要:
我们写一个car类,并写一个无参构造方法。 我们来创建一个对象car 写个main方法,看下效果。 控制台打印 构造器不能被继承 只能被调用 所以不存在overwrite 但可以overload 阅读全文
posted @ 2017-09-28 21:28 PoeticalJustice 阅读(303) 评论(0) 推荐(0)
2017年9月28日 #
posted @ 2017-09-28 21:28 PoeticalJustice 阅读(303) 评论(0) 推荐(0)
posted @ 2017-09-28 21:21 PoeticalJustice 阅读(151) 评论(0) 推荐(0)
posted @ 2017-09-28 21:18 PoeticalJustice 阅读(171) 评论(0) 推荐(0)
posted @ 2017-09-28 21:16 PoeticalJustice 阅读(126) 评论(0) 推荐(0)
posted @ 2017-09-28 21:09 PoeticalJustice 阅读(377) 评论(0) 推荐(0)