Difference between Abstract and Interface June 23, 2005
Posted by javafoo in OOAD, java interview, javanotes.trackback
- Interface only provides the contract, does not add default behaviour, whereas abstract classes provide default behaviour (not necessarily, only if you want to, but that is the point)
- You can implement as many interfaces as you may want, but only extend from one abstract class
- You cannot have private, protected variables in an Interface.
Nice thats i want to know….