Kotlin प्राथमिक और माध्यमिक निर्माता में से एक वर्ग
कोड उदाहरण
0
0
क्या है के उपयोग के माध्यमिक निर्माता में kotlin ?
Although secondary constructors are not that common in Kotlin. The most common use of secondary constructor comes up when you need to extend a class that provides multiple constructors that initialize the class in different ways.