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;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- public class trainer
- {
- String _name;
- String _firstname;
- String _promotion;
- String _currentPromotion;
- String _email;
- String _campus;
- String[] _courses = new String[10];
- String[] _alreadyCourses = new String[10];
- String _alreadyCampus;
- String _wouldCampus; //j'ai pas trop compris la question
- public trainer(String name, String firstname, String promotion, String currentPromotion, String email, String campus, String[] courses, String[] alreadyCourses, String alreadyCampus, String wouldCampus)
- { //Je suis pas sûr que passer un tableau en argument fonction mais je sais pas comment faire autrement
- this._name = name;
- this._firstname = firstname;
- this._promotion = promotion;
- this._currentPromotion = currentPromotion;
- this._email = email;
- this._campus = campus;
- this._courses = courses;
- this._alreadyCourses = alreadyCourses;
- this._alreadyCampus = alreadyCampus;
- this._wouldCampus = wouldCampus;
- }
- public void afficher() {
- Console.WriteLine("Trainer : " + this._name + " " + this._firstname + "(" + this._email + ")");
- Console.WriteLine("Promotion : " + this._promotion);
- Console.WriteLine("Current promotion : " + this._currentPromotion);
- Console.WriteLine("Campus : " + this._campus);
- Console.WriteLine("Campus where he already teaches : " + this._alreadyCampus);
- Console.WriteLine("Campus where he would teach : " + this._wouldCampus);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment