I have a classes as below
public class Book extends Item{ ...}
public class DVD extends Item{ ...}
Book can be of type REFRENCE or ISSUE. DVD can be of type ISSUE only.
So should I create Item as follows?
public class Item {
public enum ItemType{REFRENCE,ISSUE};
ItemType itemtype;
}
Or I should declare seperate enum for both book and DVD?