Example e = Example(0, 50); // Explicit call Example e(0, 50); // Implicit call If the programmer does not supply a constructor for an instantiable class, most languages will provide a default constructor.
Example e = Example(0, 50); // Explicit call Example e(0, 50); // Implicit call 如果在编写一个可实例化的类时没有专门编写构造器，多数编程语言会自动生成缺省构造器。