Advertisement
Guest User

Untitled

a guest
May 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 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 exarcice
  8. {
  9. class Habit :article
  10. {
  11. private string Couleur;
  12. private int taille;
  13. public Habit (int N,float prix,int stock, int min, string Couleur, int Taille): base(N,prix,stock,min)
  14. {
  15. this.Couleur = Couleur;
  16. this.taille = Taille;
  17.  
  18. }
  19.  
  20.  
  21. public override string ToString()
  22. {
  23. return base.ToString()+ "\n Couleur :" + Couleur + "\n Taille :" + taille;
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement