Created
April 12, 2012 11:38
-
-
Save tnngo2/2366688 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class Product | |
{ | |
public int Quality; | |
public int Cost; | |
} | |
class Goods | |
{ | |
static void Main(string[] args) | |
{ | |
Product objProduct = new Product(); | |
objProduct.Quality = 50; | |
objProduct.Cost = 75; | |
Console.WriteLine("Quality of the Product: " + objProduct.Quality); | |
Console.WriteLine("Cost of the product: " + objProduct.Cost); | |
} | |
} | |
class Pen : Product | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment