Skip to content

Commit 87fd65a

Browse files
committed
Made a method in Type object abstract because a child has to implement it
1 parent a3cb89f commit 87fd65a

File tree

1 file changed

+2
-5
lines changed
  • Assets/Patterns/12. Type Object/Animal/Scripts/Animals

1 file changed

+2
-5
lines changed

Assets/Patterns/12. Type Object/Animal/Scripts/Animals/Animal.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
namespace TypeObject.Animal
66
{
77
//Parent animal class
8-
public class Animal
8+
public abstract class Animal
99
{
1010
protected string name;
1111

12-
public virtual void Talk()
13-
{
14-
15-
}
12+
public abstract void Talk();
1613
}
1714
}

0 commit comments

Comments
 (0)