Forums Register Login

Class Interface Implementation

+Pie Number of slices to send: Send
A Class may implement as many interfaces as needed, but does this
become confusing after a while ?
Tony
+Pie Number of slices to send: Send
It could, if you implement a bunch of unrelated interfaces in a single class for no good reason. Good OO design technique is to limit the complexity of any single component. So don't give a class a bunch of unrelated responsibilities just because you can. There are numerous strategies for limiting complexity - the OO/Patterns forum is a good place to learn more.
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 552 times.
Similar Threads
get static value from interface at runtime
extend class
why use interfaces at all?
magic number???
Java Serialization
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:29:09.