M
Michael Tsang
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A property is defined as a member that is read and written like a field, but
the read and the write actually calls the getter and setter.
http://en.wikipedia.org/wiki/Property_(programming)
Some languages have native support for property, e.g. C#, Python, PHP.
Although C++ doesn't, I always emulate them by defining helper classes that
overload the copy constructor and the conversion operator. In Java, there is
no operator overloading, how do I emulate them? If I can't do this, I will
have trouble doing OO in Java.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkuGbykACgkQm4klUUKw07CfGgCfbxx86pgfdqbZZX6KemAOOoSW
HCcAniLS80puL8spZxB+mtMaCVzDrIYA
=yRUE
-----END PGP SIGNATURE-----
Hash: SHA1
A property is defined as a member that is read and written like a field, but
the read and the write actually calls the getter and setter.
http://en.wikipedia.org/wiki/Property_(programming)
Some languages have native support for property, e.g. C#, Python, PHP.
Although C++ doesn't, I always emulate them by defining helper classes that
overload the copy constructor and the conversion operator. In Java, there is
no operator overloading, how do I emulate them? If I can't do this, I will
have trouble doing OO in Java.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkuGbykACgkQm4klUUKw07CfGgCfbxx86pgfdqbZZX6KemAOOoSW
HCcAniLS80puL8spZxB+mtMaCVzDrIYA
=yRUE
-----END PGP SIGNATURE-----