and abstract methods?
Interfaces are by heart they are 100% pure abstract classes. We can not replace interfaces with abstract classes because java does not support multiple inheritance(that will create diamond problem) , and hence java doesn't allow to extend more than one class, but we can implement any number of interface to any class.
Обсуждают сегодня