Menu

#15 protected fields

open
nobody
5
2002-10-16
2002-10-16
Anonymous
No

For some tests we need a customized version of a
mock object.
We could use inheritance to provide the new behavior
without disturbing the original mock made (since it was
enough for other test cases).
But all fields are declared private. Protected fields would
ease the task of customizing the mocks.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.