Pergunta de entrevista da empresa Revature

What is the difference between abstraction and interface?

Resposta da entrevista

Sigiloso

19 de mar. de 2019

interfaces use abstraction, but they are different from abstract classes in that they can both extend other classes and implements interfaces, whereas interfaces cannot extend classes. Also, abstract classes can have members both public, private, protected etc...., interface members are all public by default.

1