Pagina de inicio
/
Tecnología
/
What operator is used to access the members of a custom object in Go? The dot operator The fmt operator The assignment operator The arithmetic operator

Problemas

What operator is used to access the members of a custom object in Go?
The dot operator
The fmt operator
The assignment operator
The arithmetic operator

What operator is used to access the members of a custom object in Go? The dot operator The fmt operator The assignment operator The arithmetic operator

Solución

avatar
María Josémaestro · Tutor durante 5 años
expert verifiedVerificación de expertos
4.0 (336 votos)

Responder

The dot operator<br /><br />In Go, the dot operator (.) is used to access the members of a custom object. For example, if you have a struct named `Person` with a field `Name`, you can access it using the dot operator like this: `person.Name`.
Haz clic para calificar: