码迷,mamicode.com
首页 > 编程语言 > 详细

Java:Constructors and polymorphism

时间:2015-04-25 21:07:14      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

As usual, constructors are different from other kinds of methods. This is also true when polymorphism is involved. Even though constructors are not polymorphic(they‘re actually static methods, but the static declaration is implicit), it‘s important to understand the way constructors work in complex hierarchies and with polymorphism. This understanding will help you avoid unpleasant entanglements.

Java:Constructors and polymorphism

标签:

原文地址:http://www.cnblogs.com/taoxiuxia/p/4456571.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!