"Szia Amigo! Íme néhány feladat, amelyek osztályok és objektumok létrehozásával járnak."

2
Feladat
Java Syntax,  szintlecke
Zárt
Creating a cat
Sally Johnson has 500 cats, and another couple hundred furry creatures come to visit them as guests. So Sally decided to create a special cat photo album to record their features: name, age, weight and strength. "Why strength?" you ask. You'll see why we need strength in the next task. For now, we'll implement the Cat class.
4
Feladat
Java Syntax,  szintlecke
Zárt
Implement the fight method
Theo Baslim, a retired colonel, saw active combat as a young man, but now he is bored. When he learned that his neighbor Sally Johnson had acquired five hundred cats, and he offered to arrange bloodless feline battles (she wouldn't go for bloody battles). There's just one small detail: we need to implement a mechanism for cats to fight based on weight, age and strength.
4
Feladat
Java Syntax,  szintlecke
Zárt
Getters and setters for the Dog class
Let's create a Dog class. A dog should have a name and age, and getters and setters for these variables. A getter is a method that returns a variable's current value to the caller. A setter is a dog breed. However, though we are talking about dogs at the moment, this term actually isn't about dogs: in the context of programming, a setter is a method that sets a variable to a new value.
2
Feladat
Java Syntax,  szintlecke
Zárt
The Three "Muscateers"
A couple of tasks ago, students at the secret CodeGym center created the class Cat. Now it's time to actually create some cats in the image and likeness of the Cat class, or rather using the class as a pattern. There should be three cats. Breathe life (or specific data) into this trio.