Product Constructor (productId, productName, weight, unitPrice, unitsInStock)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 Product Constructor (productId, productName, weight, unitPrice, unitsInStock)
Patterns-In-Action! ApplicationBusinessObjectsProductProduct(Int32, String, String, Double, Int32)
Overloaded constructor for product
Declaration Syntax
C# Visual Basic
public Product(
	int productId,
	string productName,
	string weight,
	double unitPrice,
	int unitsInStock
)
Public Sub New ( _
	productId As Integer, _
	productName As String, _
	weight As String, _
	unitPrice As Double, _
	unitsInStock As Integer _
)
Parameters
productId (Int32)
Unique identifier for Product
productName (String)
Name of Product.
weight (String)
Weight of Product.
unitPrice (Double)
Unit price of Product in US$.
unitsInStock (Int32)
Product units in stock.

Assembly: BusinessObjects (Module: BusinessObjects) Version: 1.0.0.0 (1.0.0.0)