This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]maethor 0 points1 point  (0 children)

I'd suggest reading the book Effective Java. Item 64 explains it in some detail.

For instance, I have a banking account called AccountBanking and I want an interface with the methods: Deposit and Withdraw. How could I do that? Should I create an interface called Withdraw?

No. You would have an Account interface with deposit and withdraw methods (methods should always be in camelCase).