Advertisement
Tosker

Vending Machine Tutorial - Vending Item Model

Nov 28th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. //Content from toskerscorner.wordpress.com
  2. public class VendingItem
  3.     {
  4.         public int Id { get; set; }
  5.         public string Name { get; set; }
  6.         public double Price { get; set; }
  7.  
  8.         public VendingItem(int id, string name, double price)
  9.         {
  10.             Id = id;
  11.             Name = name;
  12.             Price = price;
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement