this is my Product object :
public class Product
{
private string m_name;
private double m_price;
private Boolean m_imported;
public Product(string name, double price , Boolean imported)
{
m_name = name;
m_price = price;
m_imported = imported;
}
public string Name
{
set
{
m_name = value;
}
get
{
return m_name;
}
}
public double Price
{
set
{
m_price = value;
}
get
{
return m_price;
}
}
public Boolean Imported
{
set
{
m_imported = value;
}
get
{
return m_imported;
}
}
}
I have not completed the category object ,but here is what I written so far
(which is incomplete)
public class Category
{
private enum Categories {Food=1,Books=2,Medical=3,others=4};
}
As you can see I am trying to create a collection later on . maybe I have to
combine these two classes ,but I don;t know how.
Thanks
"Steven Nagy" <le*********@hotmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Show me the code for the two classes in question.
Is your collection TYPED ?