Answers for "how to add class to array of elements in javascript"

C#
0

add items to a class array

class Student
{
    IList<Subject> subjects = new List<Subject>();
}

class Subject
{
    string Name;
    string referenceBook;
}

//Now you can say:

someStudent.subjects.Add(new Subject());
Posted by: Guest on April-02-2020

Code answers related to "how to add class to array of elements in javascript"

C# Answers by Framework

Browse Popular Code Answers by Language