// compile the person class
var Person = $$(function($fName, $lName, $age)
{
// set the readonly fields (cast the string arguments)
this.firstName = $$.asString($fName);
this.lastName = $$.asString($lName);
// set the public property
this.age = $age;
},
// ##### PRIVATE #####
{
//
},
// ##### PROTECTED #####
{
'_age': 0
},
// ##### PUBLIC #####
{
'readonly firstName': '',
'readonly lastName': '',
'getFullName': function()
{
// return the concatenated full name