示例#1
0
        /// <summary>
        /// <param name="d"> Cat/Dog Number </param>
        /// <param name="c"> Type - Cat or Dog </param>
        /// </summary>
        public void enqueue(object d, CatDogType c)
        {
            CatDog cd = new CatDog((int)d, c);

            queue.Insert(cd);
        }
示例#2
0
 /// <summary>
 /// Constructor for initializing CatDog with its type and number
 /// </summary>
 public CatDog(int n, CatDogType t)
 {
     num  = n;
     type = t;
 }