dev/vala/property/property.vala

15 lines
267 B
Vala

public class Prop : Object {
public int prop;
}
public class Person : Object {
public string height { get; set; default = null; }
public Prop prop {get; set;}
}
void main () {
var p = new Person ();
p.height = "Hello, World!";
print (p.height);
}