Previous Example-|-Next Example-|-Return to Chapter Listing
Example 13.3:
Creating Methods
This form displays all the properties for each object created and uses
the OrderAmount() method to calculate the total cost of the order. This is
order.ProductType.price multiplied times order.quantity.
This page uses the following to create the objects:
Previous Example-|-Next Example-|-Return to Chapter Listing