Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Cat a1 = new Cat();
     String[] names=new String[]{"Samathna","John","Hitler","FatBertha","DrHouse","Ainstein","Koftor","Batman","Popei","Tom"};
     Random rand = new Random();
     a1.CreateCats();
     for(int i=0;i<10;i++)
     {
         Cat temp=new Cat(names[i],(rand.Next(15)+1));
         a1.AddCat(temp);
     }
     a1.Say();
 }
Ejemplo n.º 2
0
 public void AddCat(Cat a)
 {
     this.allCats[Cat.countForCats++] = a;
 }