Last active
December 13, 2017 17:17
-
-
Save NoobInTraining/c246269e275d477fc8a602a915f70c58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IAnswer | |
{ | |
} | |
interface IQuestion | |
{ | |
IAnswers[] Answers { get; } | |
} | |
class SimpleAnswer : IAnswer | |
{ | |
} | |
class SimpleQuestion : IQuestion | |
{ | |
//is possible to declare the Answers array like this: | |
SimpleAnswer[] Answers { get; private set; } | |
//rather than this: | |
//IAnswer[] Answers { get; private set; }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment