dev/vala/property/property.vala

15 lines
267 B
Vala
Raw Normal View History

2012-10-29 16:47:54 +04:00
public class Prop : Object {
public int prop;
}
2012-10-27 15:54:14 +04:00
public class Person : Object {
2012-10-29 16:47:54 +04:00
public string height { get; set; default = null; }
public Prop prop {get; set;}
2012-10-27 15:54:14 +04:00
}
void main () {
var p = new Person ();
p.height = "Hello, World!";
print (p.height);
}