A developer creates a custom controller and coustom visualforce page by using the following code block:
public class myController {
public string myString;
public String getMyString() {
return 'getMyString';
}
public String getStringMethod1() {
return myString;
}
public String getStringMethod2() {
if (myString == null)
myString = 'Method2';
return myString;
}
}
<apex:page controller="myController">
{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString}
</apex:page>
Selecciona una de las siguientes respuestas posibles: