I use interfaces rarely and find them common in others code. Also I create sub and super classes (while creating my own classes) rarely in my code.Is it a bad thing?Would you suggest changing this style?Does this style have any side-effects?Is this because I have not worked on any large projects?
Is it bad habit not using interfaces?
programming practices;coding style;interfaces
There are several reasons why you might want to use interfaces:Interfaces are suited tosituations in which yourapplications require many possiblyunrelated object types to providecertain functionality.Interfaces are more flexible thanbase classes because you can definea single implementation that canimplement multiple interfaces.Interfaces are better in situationsin which you do not need to inheritimplementation from a base class.Interfaces are useful in cases whereyou cannot use class inheritance.For example, structures cannotinherit from classes, but they canimplement interfaces.http://msdn.microsoft.com/en-us/library/3b5b8ezk(v=vs.80).aspxInterfaces are like anything else in programming.  If you don't need them, don't use them.  I've seen them used extensively as a matter of style, but if you don't need the special properties and capabilities that an interface provides, I don't see the benefit of using them just because.