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;
- namespace Firma
- {
- class Faktura
- {
- public string NameOfProduct { get; set; }
- private int id;
- private double price;
- public double PriceOfProduct
- {
- get { return price; }
- set { price = value; }
- }
- public int NumberOfInvoice
- {
- get { return id; }
- set { id = value; }
- }
- private int amount;
- public int AmountOfProduct
- {
- get { return amount; }
- set { amount = value; }
- }
- public int AmountOfProduct_inKopa
- {
- get { return (amount/60); }
- }
- public int AmountOfProduct_inTuzin
- {
- get { return (amount / 12); }
- }
- public int AmountOfProduct_inGros
- {
- get { return (amount / 144); }
- }
- public Faktura(int id, int amount, double price, string name)
- {
- NumberOfInvoice = id;
- AmountOfProduct = amount;
- PriceOfProduct = price;
- NameOfProduct = name;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement