"Hallo, Amigo! Je bent een goede vriend! De professor zei dat je 10 taken moest bedenken, maar ik geef je er maar twee. Dat is het meeste dat ik kon bedenken met een kater. Het is jammer dat je het feest hebt gemist ter ere van jou gisteren. Het was een geweldige tijd.'
4
Taak
Java Core, niveau 4, les 2
Vergrendeld
Bingo!
A tiger is a bit more than a cat. And a cat is a pet. And in turn, any pet is an animal. And all of them descend from Object. Something is wrong with the inheritance in our program. Correct the 'Object animal = new Pet();' line in the main method so that the program displays "Bingo!"
4
Taak
Java Core, niveau 4, les 2
Vergrendeld
Bingo!
A rose by any other name: it's no coincidence that the famous cartoon cat is called Tom. In the language of Shakespeare, a tomcat is a male cat. Obviously, tomcat is also a "regular" cat and can move. Correct the program so that the variable cat references an object that simultaneously implements CanMove, and is a Cat and a Tomcat.
0
Opmerkingen
Populair
Nieuw
Oud
Je moet ingelogd zijn om opmerkingen te kunnen maken