Challenge: Team Constructor
Завдання
Swipe to start coding
Here is a class called Team written for you. Your task is to write a constructor that takes all 4 parameters and initializes all 4 fields. Please do not modify the Main class and its methods.
- Write a constructor with 4 parameters:
name,sport,yearFounded, andcity. - Initialize the
namefield with the value of thenameparameter. - Initialize the
sportfield with the value of thesportparameter. - Initialize the
yearFoundedfield with the value of theyearFoundedparameter. - Initialize the
cityfield with the value of thecityparameter.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 7
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 3.57
Challenge: Team Constructor
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Here is a class called Team written for you. Your task is to write a constructor that takes all 4 parameters and initializes all 4 fields. Please do not modify the Main class and its methods.
- Write a constructor with 4 parameters:
name,sport,yearFounded, andcity. - Initialize the
namefield with the value of thenameparameter. - Initialize the
sportfield with the value of thesportparameter. - Initialize the
yearFoundedfield with the value of theyearFoundedparameter. - Initialize the
cityfield with the value of thecityparameter.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 7
single