Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace OOP9
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(Days.Chetwyrtyk);
- Console.WriteLine(Days.Chetwyrtyk is Days);
- Console.WriteLine((int)Days.Chetwyrtyk);
- Console.WriteLine(Human.PLANET);
- // Console.WriteLine("Earth");
- Console.WriteLine(Human.humanType);
- // Console.WriteLine("Brain Size: {0}", Human.BrainSize.Large);
- Human human1 = new Human();
- human1.Speak();
- Human.Brain brain = new Human.Brain((int)Human.BrainSize.Large);
- Student student = new Student("Stoyan", 20, 2342);
- Manager<Student> manager = new Manager<Student>();
- manager.Add(student);
- manager.Add(new Student("Filip", 20, 1234));
- manager.Add(new Student("Daniel", 20, 432));
- manager.Add(new Student("Galin", 20, 54654));
- manager.Add(new Student("Peter", 20, 23432));
- // manager.Add(new Student("Stefan", 20, 31232));
- manager.Remove();
- Console.WriteLine("Manager!!! I have {0}.", manager.GetNumberOfEntities());
- Manager<Athlete> trainer = new Manager<Athlete>();
- trainer.Add(new Athlete("Filip", 20, "Futbol"));
- trainer.Add(new Athlete("Stoyan", 50, "Futbol"));
- trainer.Add(new Athlete("Peter", 20, "Futbol"));
- trainer.Remove();
- Console.WriteLine("Trainer!!! I have {0}.", trainer.GetNumberOfEntities());
- Console.Read();
- }
- }
- enum Days
- { Ponedelnik = 100, Wtronik, Srqda, Chetwyrtyk = 400, Petxk, Sxbota, Nedelq}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement