Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            // in C# we cannot inherit from multiple classes. We can use something
            // called interface, which basically makes the Class using it HAVE to
            // have specific attrs/methods defined in the interface

            CanRun obj1 = new Bird();
            CanRun obj2 = new Dodo();

            // If we intend to build a class only for the purpose of inheriting
            // from it and never intend to instantiate an object of it, that class
            // is better off being created as an abstract class.
        }
 public Task <Dodo[]> GetFamilyTree(string deviceID, Dodo dodo)
 {
     return(_IRepo.GetFamilyTree(deviceID, dodo));
 }
 public Task <bool> DodoBorn(string deviceID, Dodo dodo)
 {
     return(_IRepo.DodoBorn(deviceID, dodo));
 }