I have two packages - x and y.
x contains the Student class and the Grade enumeration.
y contains the class Klass .
Why is the Student.Grade.C type not recognized in the Klass class in package y?
Do I need to define it in my own file and publish it?
package x; enum Grade { A, B, C, D, F, INCOMPLETE }; public class Student {
source share