# Constructors

Constructors play import roles in objects' initiallization. A constructor is a method. Without constructors, an object can't be initialized properly. A constructor shares the same as its class. It does not return a value, not event void. it may or may not have arguments. With method overloading, several constructors may be defined in a class.

中文

构造函数在对象的初始化中起着重要作用。构造函数是一种方法。没有构造函数,对象就不能被正确初始化。构造函数与其类同名。它不返回值,甚至不返回 void。它可以有参数,也可以没有参数。通过方法重载,可以在类中定义多个构造函数。

If a class has constructors, Java automatically calls one of the consturctors when an object is craeted.

中文

如果一个类有构造函数,Java 会在对象创建的时候自动调用这个构造函数。