Skip to content

Commit 4f54a18

Browse files
ClémentClément
authored andcommitted
Removing mention of classhelper class.
1 parent 6587a12 commit 4f54a18

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

source/lectures/oop/polymorphism.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This means that the following code is valid:
3939
Note, however, that
4040

4141
- `object1.Property2 = "Test";` would not compile, since an object from `Class1` cannot access the attributes, properties and methods of `Class2`.
42-
- `ClassHelper.Method2(object1);` would also not compile, since an object from `Class1` cannot "become" an object of `Class2`.
42+
- A method requiring an argument of type `Class2` would *not* accept `object1` as an argument, since an object from `Class1` cannot "become" an object of `Class2`.
4343

4444
Stated differently, an object in `Class2` *is a(n object in)* `Class1`, but the converse is not true: an object in `Class1` *is not* an object in `Class2`.
4545

source/solutions/oop/inheritance.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,29 @@ tags:
4040

4141
#. Consider the diagram representing the "Room", "ClassRoom", "Office" classes and their relations.
4242

43-
!include diag/cla/RoomClassroomOffice.md
43+
!include diag/cla/RoomClassroomOffice.md
4444

45-
Suppose you are given an implementation of the `Room` class, such that
45+
Suppose you are given an implementation of the `Room` class, such that
4646

47-
```
48-
!include`snippetStart="// Question 1",snippetEnd="// Refer to Classroom.cs for a solution"` code/projects/RoomClassroomOffice/RoomClassroomOffice/Program.cs
49-
```
47+
```
48+
!include`snippetStart="// Question 1",snippetEnd="// Refer to Classroom.cs for a solution"` code/projects/RoomClassroomOffice/RoomClassroomOffice/Program.cs
49+
```
5050

51-
displays
51+
displays
5252

53-
```text
54-
UH 243
55-
```
53+
```text
54+
UH 243
55+
```
5656

57-
#. Write an implementation of the `ClassRoom` class. Your `ToString` method should display the room's building and number, in addition to whether it has AV set-up.
57+
#. Write an implementation of the `ClassRoom` class. Your `ToString` method should display the room's building and number, in addition to whether it has AV set-up.
5858

5959
<details><summary>Solution</summary>
6060
```
6161
!include code/projects/RoomClassroomOffice/RoomClassroomOffice/Classroom.cs
6262
```
6363
</details>
6464

65-
#. Write a `SameBuilding` static method to be placed inside the `Room` class such that
65+
#. Write a `SameBuilding` static method to be placed inside the `Room` class such that
6666

6767
```
6868
!include`snippetStart="// Question 2",snippetEnd="// Refer to Room.cs for a solution.",dedent=4` code/projects/RoomClassroomOffice/RoomClassroomOffice/Program.cs

0 commit comments

Comments
 (0)