Код: Выделить всё
class Student
{
Subject[] subjects;
}
class Subject
{
string Name;
string referenceBook;
}
Код: Выделить всё
Student univStudent = new Student();
Код: Выделить всё
univStudent.subjects.add(new Subject{....});
Подробнее здесь: https://stackoverflow.com/questions/576 ... ject-array
Мобильная версия