📜  什么是 construtcor java 代码示例

📅  最后修改于: 2022-03-11 14:52:08.689000             🧑  作者: Mango

代码示例1
constructor in Java is a special method that is used to initialize objects. The constructor is called when an object of a class is created.