Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace frmAddProduct
- {
- class ProductClass
- {
- private int _Quantity;
- private double _SellingPrice;
- private string _ProductName, _Category, _ManufacturingDate, _ExpirationDate, _Description;
- public ProductClass (string ProductName, string Category, string MfgDate, string ExpDate,
- double Price, int Quantity, string Description)
- {
- this._Quantity = Quantity;
- this._SellingPrice = Price;
- this._ProductName = ProductName;
- this._Category = Category;
- this._ManufacturingDate = MfgDate;
- this._ExpirationDate = ExpDate;
- this._Description = Description;
- }
- public string productName
- {
- get
- {
- return this._ProductName;
- }
- set
- {
- this._ProductName = value;
- }
- }
- public string category
- {
- get
- {
- return this._Category;
- }
- set
- {
- this._Category = value;
- }
- }
- public string manufacturingDate
- {
- get
- {
- return this._ManufacturingDate;
- }
- set
- {
- this._ManufacturingDate = value;
- }
- }
- public string expirationDate
- {
- get
- {
- return this._ExpirationDate;
- }
- set
- {
- this._ExpirationDate = value;
- }
- }
- public string description
- {
- get
- {
- return this._Description;
- }
- set
- {
- this._Description = value;
- }
- }
- public int quantity
- {
- get
- {
- return this._Quantity;
- }
- set
- {
- this._SellingPrice = value;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment