Hi there

Can someone please tell me if it's possible to have a class inside a class? ie. I have 2 classes, one is called CStudent, and the other class is called CCourseGrade.

CStudent has these properties: StudNumber, StudName, GPA.

CCourseGrade has these properties: CourseNumber, CourseName, Credits, and Mark

For my CStudent class, can I also include CCourseGrade as one of the properties in the CStudent class?

If so, how do I do this properly?

Would it be right to do this in my CStudent class?



Private mcCourseList As CCourseGrade

Public Property Let CourseList(pcCourseList As CCourseGrade)
mcCourseList = pcCourseList
End Property

Public Property Get CourseList() As CCourseGrade
CourseList = mcCourseList
End Property