Questions tagged [interface-design]
33 questions
0
votes
4 answers
Why should you strive for more than one interface member whenever possible?
In general, why should you strive for three to five members per interface?
And then, what's wrong with something like this?
interface IRetrieveClient
{
Client Execute(string clientId);
}
interface ISaveClient
{
bool Execute(Client…
0
votes
1 answer
Suggestion for naming pattern that tries to cast returning null if the op fails
Ive seen this pattern in many places, but have never seen it named.
I am more after a suggestion on how to name methods that implement it, as different people seem to use a different naming pattern.
Sorry i cant recall any libraries as examples but…

mP.
- 18,002
- 10
- 71
- 105
-3
votes
3 answers
How do I set properties in a constructor that has only a self argument. I also do not know how to define methods without implementation,Inside a class
This is the Question: It blew me away; my attempt is in my next post.
Create a class called bank account that has the methods withdraw and deposit with no implementation.
Create a class called savings account that inherits from bank account.…

user6793231
- 3
- 3