Accessing Objects

To access an object, you can refer to its properties, as in the following two unrelated example statements:

name = details.forename
if (details.username == "Admin") loginAsAdmin()

So to access the showUser method of an object of class User, you would use the following syntax, in which the object details has already been created and populated with data:

details.showUser()