55
1
using System;
2
3
4
5
public class Program
6
{
7
public static void Main()
8
{
9
Bird Patrick = new Bird("duck", "Patrick", "swimming", 12, true);
10
}
11
}
12
13
public class Bird {
14
// your code goes here
15
private string name;
16
private string species;
17
private string hobby;
18
private int age;
19
private bool loveMusic;
20
21
public Bird(string speciesInput, string nameInput, string hobbyInput, int ageInput, bool loveMusicInput) {
22
species = speciesInput;
23
name = nameInput;
24
hobby = hobbyInput;
Cached Result