Зміст курсу
Java Extended
Java Extended
Updating User Information
Завдання
Your task is to update the fields of the existing person
object using setters and getters. Change the name to Bob
and set the age to 27
.
- Implement the
getName()
andgetAge()
methods, as well as thesetName()
andsetAge()
methods with the appropriate parameters and types. - Update the name and age using the
setName()
andsetAge()
methods. - Print the object with the updated fields to the console.
Дякуємо за ваш відгук!
Updating User Information
Завдання
Your task is to update the fields of the existing person
object using setters and getters. Change the name to Bob
and set the age to 27
.
- Implement the
getName()
andgetAge()
methods, as well as thesetName()
andsetAge()
methods with the appropriate parameters and types. - Update the name and age using the
setName()
andsetAge()
methods. - Print the object with the updated fields to the console.
Дякуємо за ваш відгук!
Updating User Information
Завдання
Your task is to update the fields of the existing person
object using setters and getters. Change the name to Bob
and set the age to 27
.
- Implement the
getName()
andgetAge()
methods, as well as thesetName()
andsetAge()
methods with the appropriate parameters and types. - Update the name and age using the
setName()
andsetAge()
methods. - Print the object with the updated fields to the console.
Дякуємо за ваш відгук!
Завдання
Your task is to update the fields of the existing person
object using setters and getters. Change the name to Bob
and set the age to 27
.
- Implement the
getName()
andgetAge()
methods, as well as thesetName()
andsetAge()
methods with the appropriate parameters and types. - Update the name and age using the
setName()
andsetAge()
methods. - Print the object with the updated fields to the console.