22 lines
381 B
C#
22 lines
381 B
C#
|
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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|