Veson Nautical Interview Question: difference between abstract c... | Glassdoor

Interview Question

Software Developer Intern Interview Boston, MA

difference between abstract class and interface


Interview Answer

1 Answer


In short, an interface has only the name, parameters, and return types. An interface does not implement these in anyway.

An abstract class can do everything an interface does and more, it can define what a method does.

Interfaces do not consume the CPU as much as abstract classes because they are only the names for the members to be implemented while abstract classes may have some methods implemented.

Anonymous on Mar 1, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.