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
Compilation error (line 11, col 22): 'Bird' does not contain a constructor that takes 5 arguments
Compilation error (line 13, col 12): 'Bird' does not contain a definition for 'getSpecies' and no accessible extension method 'getSpecies' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 14, col 10): 'Bird' does not contain a definition for 'getName' and no accessible extension method 'getName' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 15, col 10): 'Bird' does not contain a definition for 'getHobby' and no accessible extension method 'getHobby' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 16, col 10): 'Bird' does not contain a definition for 'getAge' and no accessible extension method 'getAge' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 17, col 10): 'Bird' does not contain a definition for 'getLoveMusic' and no accessible extension method 'getLoveMusic' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 13, col 12): 'Bird' does not contain a definition for 'getSpecies' and no accessible extension method 'getSpecies' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 14, col 10): 'Bird' does not contain a definition for 'getName' and no accessible extension method 'getName' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 15, col 10): 'Bird' does not contain a definition for 'getHobby' and no accessible extension method 'getHobby' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 16, col 10): 'Bird' does not contain a definition for 'getAge' and no accessible extension method 'getAge' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)
Compilation error (line 17, col 10): 'Bird' does not contain a definition for 'getLoveMusic' and no accessible extension method 'getLoveMusic' accepting a first argument of type 'Bird' could be found (are you missing a using directive or an assembly reference?)