C# animal

This commit is contained in:
Mark Dellacca
2021-02-18 15:45:44 -08:00
parent f4beac6bce
commit b283e4535f
4 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace Animal
{
public class Branch
{
public string Text { get; set; }
public bool IsEnd => Yes == null && No == null;
public Branch Yes { get; set; }
public Branch No { get; set; }
public override string ToString()
{
return $"{Text} : IsEnd {IsEnd}";
}
}
}