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;
- using System.Threading.Tasks;
- namespace exarcice
- {
- class Habit :article
- {
- private string Couleur;
- private int taille;
- public Habit (int N,float prix,int stock, int min, string Couleur, int Taille): base(N,prix,stock,min)
- {
- this.Couleur = Couleur;
- this.taille = Taille;
- }
- public override string ToString()
- {
- return base.ToString()+ "\n Couleur :" + Couleur + "\n Taille :" + taille;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement