This is what seems wierd to me. If yo have a private set property why even
have it at all. why not just use the member variable. your basically sayign
i need to access a member in a class from within the same class but not
anywhere else. It seems a waste to me to write methods and properties for
something like this.
It won't start whining if "IsHungry" is just a field! Solution - make it a
property and invoke Dog.Whine() in the setter. )
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.