Friday, January 13, 2012

This is a C# program?

Create a cl named Pizza. Data fields include a string for toppings (such as pepperoni), an integer for diameter in inches (such as 12), and a double for price (such as 13.99). Include properties to get and set values for each of these fields. Create a cl named TestPizza that instantiates one Pizza object and demonstrates the use of the Pizza set and get accessors.

No comments:

Post a Comment