BP10: Return interfaces instead of concrete types
Almost always return an interface type and return the most generic one making sense for the typical consuming code.
Anonymous
You never know what an interface type is hiding.
You never know what an interface type is hiding.
Anonymous
I'd disagree and say: Always return conrete Types but only accept interfaces (where appropriate, eg. public methods). This way you don't limit your users but still manage to have lose coupling.
I'd disagree and say: Always return conrete Types but only accept interfaces (where appropriate, eg. public methods). This way you don't limit your users but still manage to have lose coupling.
Anonymous
Don't always blindly return interfaces instead of concrete types. Understand the difference and the implications, then choose depending on your requirements.
Don't always blindly return interfaces instead of concrete types. Understand the difference and the implications, then choose depending on your requirements.
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
Anonymous
Καλησπέρα.
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
the infinteis -3/15 so 1triition / infinet
Anonymous
e
e
Anonymous
<a href="https://inspirum.pl "
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
[url]https://inspirum.pl[/url]
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e