Tags » Class

Secondary Constructors

package my.test

class Person( name:String){

    init{
        println("${name}")
    }
// end all init block before Secondary Constructors
/*Secondary Constructors*/
/*init pry construct using this*/
    constructor(name: String,adds:String):this(name){
        println(adds)
    }

}

fun main(args:Array<String>){

val obj=Person("sujit","Arambati")


}
Class

class with primary constructor and init

package my.test

class Person( name:String){ //primary constructor with single parameter name

init{ // initialized primary constructor 20 more words

Class

class

package my.test

class Person( n:String){
var name=n
get() =field.toUpperCase()

set(value) { field="Hello "+value}

init{
println("${name}")
}

}

fun main(args:Array){

val obj=Person("sujit")
obj.name="mou"
println(obj.name)

}

out put:
SUJIT
HELLO MOU

Class

The Courts from Above Ground

Can you hear the Jury grumbling as they take their seats?

The Judge cracks open the session with his bulletined order of events.

Like a tombstone of structured emotion, the prosecution states their case with a cackle of arrogance and bitter assumption. 356 more words

Existentialism

finally, a moment to breathe

well, today – this week – was inexplicably draining.

the past few evenings, i found myself energetically marching my way back to my apartment after getting off the train. 877 more words

Manhattan Night Court

At around 8:15pm at 100 Centre Street, one can find what is talked about in the New York press as a ‘tourist attraction’: night court. 900 more words

16A Secret Sauce

When I thought about my “Secret Sauce”, I came up with a small list of things:

  • Spanish and Salsa dancing – I lived in Spain for almost 5 months starting August of last year, and I’ve been practicing and learning Spanish for about six years.
  • 243 more words
Class