Skip to content

Commit 703b471

Browse files
committed
Removing useless comment.
1 parent ff99958 commit 703b471

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

source/code/projects/IToString/IToString/IToString.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/*
2-
* The question of adding ToString methods to interface is a bit delicate and will certainly not be on any CSCI 1302 exam. The answer is, in short: you cannot force the implementation of a ToString with an interface.
3-
* This is discussed at length at
4-
* https://stackoverflow.com/q/510341
5-
* where an alternative solution is provided (essentially: use an abstract class).
6-
*
7-
* Observe that this would compile just fine, even if Demo does not provide the implementation of a ToString method. Of course, Demo already posses a ToString method, the one every class inherits.
8-
*/
9-
101
interface IToString
112
{
123
string ToString();

0 commit comments

Comments
 (0)