Mode entretien. Minuteur de 4 min, sans indices ni autocomplétion
Adam and Eve
FacileClasses4 min
Write the classes Human, Man and Woman. Man and Woman inherit from Human.
Also write a class God with a static method create(). It returns an array of two objects. The first is a Man object, the second a Woman object.
Exemples
God.create().lengthRenvoie 2
God.create()[0] instanceof ManRenvoie true
God.create()[1] instanceof HumanRenvoie true
Chargement de l'éditeur...
- create() returns an array of two objects
- The first object is a Man
- The second object is a Woman
- Both objects are humans
Les tests cachés se lancent à la soumission