Skip to content

Commit 907e0c9

Browse files
authored
Update image alt text and remove SVG file
1 parent 41665a5 commit 907e0c9

File tree

4 files changed

+1
-157
lines changed

4 files changed

+1
-157
lines changed

docs/csharp/advanced-topics/interface-implementation/media/mixins-with-default-interface-methods/diamond-problem.svg

-156
This file was deleted.

docs/csharp/advanced-topics/interface-implementation/mixins-with-default-interface-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ These changes compile cleanly, even though the `ExtraFancyLight` declares suppor
118118

119119
Avoid overriding the same method in multiple derived interfaces. Doing so creates an ambiguous method call whenever a class implements both derived interfaces. The compiler can't pick a single better method so it issues an error. For example, if both the `IBlinkingLight` and `ITimerLight` implemented an override of `Power()`, the `OverheadLight` would need to provide a more specific override. Otherwise, the compiler can't pick between the implementations in the two derived interfaces. This situation is shown in the following diagram:
120120

121-
:::image type="content" source="./media/mixins-with-default-interface-methods/diamond-rebuild.png" alt-text="illustration of the diamond problem with default interface methods":::
121+
:::image type="content" source="./media/mixins-with-default-interface-methods/diamond-rebuild.png" alt-text="Diagram of the the interface implimentations of the Power method.":::
122122

123123
The preceding diagram illustrates the ambiguity. `OverheadLight` doesn't provide an implementation of `ILight.Power()`. Both `IBlinkingLight` and `ITimerLight` provide overrides that are more specific. A call to `ILight.Power()` on an instance of `OverheadLight` is ambiguous. You must add a new override in `OverheadLight` to resolve the ambiguity.
124124

0 commit comments

Comments
 (0)