回答編集履歴
2
追記
answer
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[これ](https://watson-developer-cloud.github.io/unity-sdk/docs/v2.0.0/html/F381D0E9.htm)でしょうか。
|
4
4
|
|
5
|
-
`ILogReactor` インターフェ
|
5
|
+
`ILogReactor` インターフェースは以下の実装になっているようです。
|
6
6
|
```C#
|
7
7
|
public interface ILogReactor{
|
8
8
|
void ProcessLog(LogRecord log);
|
@@ -20,7 +20,11 @@
|
|
20
20
|
}
|
21
21
|
```
|
22
22
|
|
23
|
+
インターフェースを実装したクラスはそのインターフェースと同じ定義をする必要があります。
|
24
|
+
詳しくは[こちら](https://ufcpp.net/study/csharp/oo_interface.html)を参照してください。
|
25
|
+
|
26
|
+
|
23
27
|
# 余談
|
24
28
|
> ILogReactorを継承しています。
|
25
29
|
|
26
|
-
`ILogReactor` はインターフェ
|
30
|
+
`ILogReactor` はインターフェースなので、継承ではありません。実装です。
|
1
コード修正
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
`ILogReactor` インターフェイスは以下の実装になっているようです。
|
6
6
|
```C#
|
7
|
-
interface ILogReactor{
|
7
|
+
public interface ILogReactor{
|
8
8
|
void ProcessLog(LogRecord log);
|
9
9
|
}
|
10
10
|
```
|