Skip to content

Instantly share code, notes, and snippets.

@NoobInTraining
Last active December 13, 2017 17:17
Show Gist options
  • Save NoobInTraining/c246269e275d477fc8a602a915f70c58 to your computer and use it in GitHub Desktop.
Save NoobInTraining/c246269e275d477fc8a602a915f70c58 to your computer and use it in GitHub Desktop.
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