This will make it easier to write the toString function of the terrarium later.
Cela simplifiera l'écriture de la fonction toString du terrarium après.
Only in combination with toString= and line=.
Seulement en combinaison avec toString= et line=.
We already saw simple examples of this, like the toString method on objects.
Nous avons déjà vu un exemple de cela, à savoir la méthode toString de nombreux objets.
For example, other constructors' prototypes override the constructor property and provide their own toString methods.
Par exemple, d'autres prototypes de constructeurs remplacent la propriété du constructeur et fournissent leurs propres méthodes toString.
What I propose is that we define our gcd function in toString. val g equals gcd
Ce que je propose, c'est que nous définissons notre fonction gcd dans toString.
The most straightforward method of a terrarium object is toString, which transforms a terrarium into a string.
La méthode la plus évidente de l'objet terrarium est toString, qui transforme un terrarium en chaîne de caractères.
Adds and/or removes elements from an array. toString()
Ajoute et / ou supprime des éléments d'un tableau. toString ()
For example, this means that the toString() method is always at the same vtable offset for every class.
Par exemple, ceci signifie que la méthode toString() est toujours au même offset dans la vtable pour toutes les classes.
A class can also have methods, callable on an instance, as the method toString() here.
Une classe peut aussi avoir des méthodes, appelables sur une instance, comme la méthode toString() dans l'exemple.
By default, this method will write a new string generated with the toString() method to a file.
Par défaut, cette méthode écrit une nouvelle chaîne dans un fichier avec la méthode toString().
Returns an ordering that compares objects by the natural ordering of their string representations as returned by toString().
Retourne un ordre qui compare des objets par l'ordre naturel de leurs représentations de chaîne retournée par toString ().
Calling the toString() method returns the text contained in the selection, e.g
L'appel de la méthode toString() renvoie le texte contenu dans la sélection.
that the toString methods coded in the different levels
Les lignes suivantes permettront de vérifier que les méthodes toString