Hi there,
I have created inheritence
public class Item
{
int Id;
string SerialNumber;
......
}
public class Phone : Item
{
Model PhoneModel;
string ScreenSize;
......
}
public class Sim : Item
{
string PhoneNumber;
.......
}
What is the best way to get Items with all properties for both Phone and Sim?
If I create entity that will hold all items (something like shopping cart) what is the best way to distinguish what is type od item. Thanks