2016-03-05 19 views

risposta

6

I costruttori in wollok sono definiti utilizzando la parola chiave 'costruttore'. Ad esempio:

class Point { 
    var x 
    var y 

    constructor(_x, _y) { 
     x = _x 
     y = _y 
    } 
} 
Problemi correlati