Revature Interview Question

What is the difference between abstraction and interface?

Interview Answer

Anonymous

Mar 19, 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