Advertisement
barnabe0057

TP Distributeur - Program.cs

Feb 23rd, 2022
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. namespace MNS // Note: actual namespace depends on the project name.
  2. {
  3.     internal class Program
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.             Boisson b = new Boisson(200, "Un gros café", 2, false);
  8.             Distributeur d = new Distributeur();
  9.  
  10.             b.Boire(10);
  11.             Console.WriteLine(b.GetQuantite());
  12.  
  13.             d.ObtenirBoisson(b);
  14.         }
  15.  
  16.      
  17.  
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement