关于构造函数的英语翻译

来源:百度知道 编辑:UC知道 时间:2024/05/14 13:49:50
constructor can be used to initialize the member variables of a class. As such, a constructor provides a valuable alternative to a method initializer, the type of method we saw earlier.

翻译(意译):
构造方法是用来初始化类的成员变量的,并且,我们还可以为构造方法提供参数,方法的类型是写在前面的

大概的意思应该就这个,不知道你懂了没
(小的不才,望牛人表向我吐口水啊,呵呵)

About constructors