-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStudent.cs
42 lines (37 loc) · 967 Bytes
/
Student.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
namespace SchoolService
{
/// <summary>
/// Student:
/// Type of Person
/// identifies by string id, major, units, and gpa
/// </summary>
[DataContract]
public class Student : Person
{
/// <summary>
/// Student’s alpha-numeric ID
/// </summary>
[DataMember]
public string ID { get; set; }
/// <summary>
/// Student’s major
/// </summary>
[DataMember]
public string Major { get; set; }
/// <summary>
/// Number of units the student has completed
/// </summary>
[DataMember]
public float Units { get; set; }
/// <summary>
/// Student’s GPA
/// </summary>
[DataMember]
public float GPA { get; set; }
} // end of class
} // end of namespace