Hvers vegna þurfum við að hringja í aðal hafa í efri hafa í kotlin
Kóða dæmi
0
0
hvað er að því að nota efri hafa í 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.