ShippingStrategyUPS Class

Design Pattern Framework 3.5

Design Pattern Framework 3.5 ShippingStrategyUPS Class
Patterns-In-Action! ApplicationCartShippingStrategyUPS
United Postal Service specific class to determine shipping costs.
Declaration Syntax
C# Visual Basic
public class ShippingStrategyUPS : IShipping
Public Class ShippingStrategyUPS _
	Implements IShipping
Members
All Members Constructors Methods



Icon Member Description
ShippingStrategyUPS()()()
Initializes a new instance of the ShippingStrategyUPS class

CalculateShipping(String, String, Double, Double)
Calculates shipping costs given zip codes and product dimensions.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
EstimateShipping(Double, Int32)
Estimates shipping costs given a product unit price and quantity.

Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
GoF Design Pattern: Strategy.
Inheritance Hierarchy
Object
ShippingStrategyUPS

Assembly: Cart (Module: Cart) Version: 1.0.0.0 (1.0.0.0)