Pouknouki

trainer.cs

Mar 21st, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     public class trainer
  10.     {
  11.         String _name;
  12.         String _firstname;
  13.         String _promotion;
  14.         String _currentPromotion;
  15.         String _email;
  16.         String _campus;
  17.         String[] _courses = new String[10];
  18.         String[] _alreadyCourses = new String[10];
  19.         String _alreadyCampus;
  20.         String _wouldCampus; //j'ai pas trop compris la question
  21.  
  22.         public trainer(String name, String firstname, String promotion, String currentPromotion, String email, String campus, String[] courses, String[] alreadyCourses, String alreadyCampus, String wouldCampus)
  23.         { //Je suis pas sûr que passer un tableau en argument fonction mais je sais pas comment faire autrement
  24.             this._name = name;
  25.             this._firstname = firstname;
  26.             this._promotion = promotion;
  27.             this._currentPromotion = currentPromotion;
  28.             this._email = email;
  29.             this._campus = campus;
  30.             this._courses = courses;
  31.             this._alreadyCourses = alreadyCourses;
  32.             this._alreadyCampus = alreadyCampus;
  33.             this._wouldCampus = wouldCampus;
  34.         }
  35.  
  36.         public void afficher() {
  37.             Console.WriteLine("Trainer : " + this._name + " " + this._firstname + "(" + this._email + ")");
  38.             Console.WriteLine("Promotion : " + this._promotion);
  39.             Console.WriteLine("Current promotion : " + this._currentPromotion);
  40.             Console.WriteLine("Campus : " + this._campus);
  41.             Console.WriteLine("Campus where he already teaches : " + this._alreadyCampus);
  42.             Console.WriteLine("Campus where he would teach     : " + this._wouldCampus);
  43.         }
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment