Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
8 votes
4 answers
2k views

Are there advantages to using an interface, rather than a class, for a Java application?

Java is often (rightly IMHO criticized) for overusing the class keyword, as it can denote: a factory to instantiate objects (traditional classes) a collection of global methods (when all methods are ...
Ray Toal's user avatar
  • 1,325
6 votes
6 answers
5k views

Should all classes have a default constructor as part of good coding convention

From the texts I have read so far, the conventions talk about organizing constructors, starting with the default, if any. I am wondering, should all classes have a default constructor anyway. This ...
Shamim Hafiz - MSFT's user avatar
1 vote
2 answers
1k views

GUI architecture and class naming advice [closed]

Problem: I'm working on coding a few light-weight touch-tablet games and often get stuck with difficulties naming my user interaction/interface classes and their relationships with each other (...
Amoxus's user avatar
  • 27