Spring Why Interfaces instead Abstract Classes?
Sometimes,we use Spring in some automatic way. Today i was thinking and searching the followig. Why we use to do this in Spring? @Autowired IAnimal animal; And why we usually dont do something like this? @Autowired Animal animal; Animal is an abstract class,and in our beans.xml ,or using @Autowired with Qualifier,we can specify which implementation we want.A Dog,a Cat,etc.