I have two packages - x and y.
x contains the Student
class and the Grade
enum.
y contains the Klass
class.
Why is the type Student.Grade.C
not recognized in the Klass
class in package y?
Do I need to define it in its own file and make it public?
package x;
enum Grade { A, B, C, D, F, INCOMPLETE };
public class Student {
// blah, blah, member variables, getters, setters, constructors
}
package y;
public class Klass {
// This enum type is not recognized in this package
public static final MINIMUM_GRADE = Student.Grade.C;
}