"Bună, Amigo! Ai făcut atât de bine exercițiile anterioare încât am decis să găsesc ceva mai greu pentru tine."
"Mulțumesc, Diego. Ești un prieten adevărat. Nu mă așteptam la asta!!!"
3
Sarcină
Java Core, nivel, lecţie
Abstract Pet class
The Good Neighbor Farm takes in all pets, including outcasts and runaway convicts from all over the galaxy. But the farmers never know what kind of animals the intergalactic railroad will bring them next. To avoid any misunderstanding, create an abstract Pet class for the Good Neighbor Farm.
3
Sarcină
Java Core, nivel, lecţie
"Fix the code", part 1
This task is the start of a show where you'll be the star! Essentially, the main character is a skilled junior programmer who has to deal with code written by an inept coworker. In the end, the program compiles and everyone lives happily ever after.
3
Sarcină
Java Core, nivel, lecţie
"Fix the code", part 2
In this episode of "Fix the code", the young, but promising, programming intern must once again must wrestle with demons and... kittens. Aren't kittens the cutest? Or are they??? You could say this to Napoleon the cat breeder (if you dare!), but we need you to fix the code so that the program compiles.
3
Sarcină
Java Core, nivel, lecţie
Cows are animals too
During the intergalactic census, cows from Planet Earth weren't included in the unified animal register, because they were confused with a strikingly similar intelligent life form from Planet Mooing. Be a programmer! Correct this injustice! Make the Cow class inherit the Animal class and finish writing the Cow class's missing methods.
3
Sarcină
Java Core, nivel, lecţie
Cats should not be abstract!
Cats should not be abstract! Don't take my word for it - ask Schrodinger's cat. Its chilling story will convert any skeptic. But to not be bored, cats need their forever frenemies: dogs. So we will complete a task where two non-abstract Cat and Dog classes will inherit Pet, and then we'll write methods for them.