我们可以将所有构造函数用于较早触发的构造函数吗? [英] can we use all constructor at ones which one will fire earlier?

查看:91
本文介绍了我们可以将所有构造函数用于较早触发的构造函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

plz给您宝贵的建议

plz give ur valuable suggestion

推荐答案

这不是一个问题,它的意义为零.

如果您有许多构造函数,则最好的办法是将所有初始化代码放入它们都调用的方法中,以便将其定义在一个位置并易于维护.如果这不是您的意思,请提供示例,这是克服您英语说得不好的障碍的最佳方法(这没什么大不了,我们将尽力与您合作,但这是理解您的障碍,您说的越多,您给出的例子越多,我们就越能更好地弄清您的意思.)
This is not a question, it makes zero sense.

If you have many constructors, the best thing to do is to put any initialisation code in a method that they ALL call, so that it''s defined in one place and easy to maintain. If that''s not what you meant, then provide examples, that''s the best way to get through the barrier of your not speaking English well ( which is not a big deal, and we''ll try to work with you, but, it IS a barrier to understanding you, and the more you say, and the more examples you give, the better we can try to work out what you mean ).


这篇关于我们可以将所有构造函数用于较早触发的构造函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆