If I have an interface for a Server like this…
interface IServer
{
void Login();
void Post();
void Get();
}
…where Post and Get don’t work unless you’ve done Login first. Is it a semantic violation of encapsulation, since it makes your use of the interface implicitly dependent on the implementation? How would you fix it?
My idea:
Ignore that if you are accessibly of “mud”:
[MUD]
[/MUD]