The main purpose of constructor is to initialize the properties of a class. Constructor is called when we create the object of a class. In Kotlin we have.
確定! 回上一頁