aboutsummaryrefslogtreecommitdiff
blob: ab273e3822d2c51b63695bcf37a7d5d8ac0f0065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace KukaPizza.Models
{
    public enum ToppingCategory
    {
        Vegetable,
        Meat,
        Spice,
        Cheese,
        SeaFood,
        Sauce
    }

    public class Topping
    {
        private string _name;
        private ToppingCategory _category;
        private double _price;
        public Topping(string name, ToppingCategory category, double price)
        {
            _name = name;
            _category = category;
            _price = price;
        }

        public string Name { get { return _name; } }
        public ToppingCategory Category { get { return _category; } }
        public double Price { get { return _price; } }
    }
}