Take a look at the code in this recently closed question. It clearly consists of two parts.
- The method, which OP wants us to review.
- An example (hypothetical?) code, which demonstrates the use case of above method.
Now, to make this question on-topic, OP can either remove part 2 completely or replace it with actual code, which is most likely a lot larger and a lot more complex, than three stub classes. I wonder though if the question will improve as a result of either of those actions. I personally as reviewer would much prefer the original version of this question, as it both (a) shows just enough context to understand what the person is asking and (b) doesn't force me to dive into the semantics of classes which are irrelevant to the question asked.
Opinions? Should hypothetical code be allowed in general if it is used to provide context to actual code?