Frage im Vorstellungsgespräch bei Morgan Stanley

Need of Abstract Classes when there is interface available in java

Antworten zu Vorstellungsgespräch

Anonym

1. Juni 2021

Abstract classes can be partially implemented because it can provide common functionality to all implementations where as interface cannot contain implementations for any member

Anonym

1. Juni 2021

From JAVA 9 onwards, interface can have default implementations too. So this makes abstract classes practically useless.