Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 16504

Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods are handled.

11 votes
Accepted

House plan design (Head First C#)

I don't see a way around this, however if you have your locations implement an interface, and write your form to consume the interface rather than Location you can get much of the same benefit of actual … public interface ILocation { public string Name { get; } public IList<ILocation> Exits {get;} public string Description { get;} } In ILocation we only specify the get portions of the properties …
Mr.Mindor's user avatar
  • 346