-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLMS._class.Section.pas
More file actions
50 lines (39 loc) · 880 Bytes
/
LMS._class.Section.pas
File metadata and controls
50 lines (39 loc) · 880 Bytes
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
43
44
45
46
47
48
49
50
unit LMS._class.Section;
interface
uses
Generics.Collections,
LMS._interface.LMS;
type
TSection = class(TInterfacedObject, ISection)
strict private
fCourse: ICourse;
fModules: TList<IModule>;
fName: string;
function GetModules: TList<IModule>;
function GetName: string;
procedure SetName(const Value: string);
public
/// <summary>TSection.Create
/// </summary>
/// <param name="Course"> (ICourse) </param>
constructor Create(const Course: ICourse);
end;
implementation
constructor TSection.Create(const Course: ICourse);
begin
fCourse := Course;
fModules := TList<IModule>.Create;
end;
function TSection.GetModules: TList<IModule>;
begin
result := fModules;
end;
function TSection.GetName: string;
begin
result := fName;
end;
procedure TSection.SetName(const Value: string);
begin
fName := Value;
end;
end.