For the following class, how do you get the value of 42 from an instance of X?
class X {
get Y() {
return 42;
}
}
var x = new X();
For the following class, how do you get the value of 42 from an instance of X?
class X {
get Y() {
return 42;
}
}
var x = new X();