22 lines
381 B
C#
Raw Normal View History

2021-02-16 22:27:58 +00:00
using System.Collections.Generic;
namespace GradeBook
{
class Book
{
private List<double> grades;
private string name;
public Book(string name)
{
this.name = name;
grades = new List<double>();
}
public void AddGrade(double grade)
{
this.grades.Add(grade);
}
}
}