Skip to content

Commit fa77ffd

Browse files
committed
last
1 parent f63bcee commit fa77ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assignment_4/csharp/factorymethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Cat : Animal {
1313
}
1414

1515
class AnimalFactory {
16-
public static Animal CreateAnimal(string type) {
16+
public static Animal? CreateAnimal(string type) {
1717
return type switch {
1818
"dog" => new Dog(),
1919
"cat" => new Cat(),

0 commit comments

Comments
 (0)