Skip to content

Commit fc6a898

Browse files
ClémentClément
authored andcommitted
Adding note on CList as ICollection realization.
1 parent 7e08598 commit fc6a898

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

source/diag/cla/ICollection.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class ICollection~T~{
2+
<<Interface>>
3+
+ <<get>> Count: int
4+
+ <<get>> IsReadOnly: bool
5+
+ Add(item: T)
6+
+ Clear()
7+
+ Contains(item: T): bool
8+
+ CopyTo(array: T[], arrayIndex:int)
9+
+ GetEnumerator(): IEnumerator
10+
+ Remove(item: T): bool
11+
}
12+
13+

source/lectures/oop/interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ Note that
8787

8888
!include diag/cla/Shape.md
8989

90-
[in this archive](./code/projects/Shape.zip)
90+
Find a project implementing this diagram [in this archive](./code/projects/Shape.zip)

source/order

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
./lectures/data/manipulating_rectangular_arrays.md
6161
./lectures/data/lists.md
6262
./lectures/data/CList.md
63+
./lectures/data/CList_as_ICollection.md
6364
./lectures/misc/
6465
./lectures/misc/over_under_flow.md
6566
./lectures/misc/random.md

0 commit comments

Comments
 (0)