I have a Employee class and department class.Now within employee i have a department as its member.The department can be either of 2 type "HR" or "Admin".Now should i declare departmentype as a enum in a separate interface and then should model department class as show below?
public interface Myconstants{
enum Depttype{HR,Admin};
}
public class Department{
Myconstants.Depttype depttype;
Department(Myconstants.Depttype depttype){
this.deptype = deptype;
}