property in Vala

This commit is contained in:
Kolan Sh 2012-10-27 15:54:14 +04:00
parent aaf7ad9144
commit b83c99e889
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
public class Person : Object {
public string height { get; set; default = null; }
}
void main () {
var p = new Person ();
p.height = "Hello, World!";
print (p.height);
}