25
1
using System;
2
3
public class Bird {
4
5
}
6
7
public class Program
8
{
9
public static void Main()
10
{
11
Bird test = new Bird("duck", "Patrick", "swimming", 12, true);
12
13
if (test.getSpecies() == "duck" &&
14
test.getName() == "Patrick" &&
15
test.getHobby() == "swimming" &&
16
test.getAge() == 12 &&
17
test.getLoveMusic()) {
18
Console.WriteLine("Congradulations! You correctly implemented the Bird Class :)");
19
} else {
20
Console.WriteLine("Something is still not quite right!");
21
}
22
}
23
}
24
25
Cached Result