lundi 24 avril 2017

randomize functiion implementation

Say I have a method in a class that carries out movement (call it move(Earth)). The function is implemented in another class using inheritance and such like this:

animal.move(Earth)

Is it possible to randomize the actual implementation without messing with the function method?




Aucun commentaire:

Enregistrer un commentaire