Amazon Interview Question
Software Engineer / DevelopersIf that were the only point then why would anyone inherit from interface in C# and Java? Inheritance not only lets you reuse the code but it also makes sure that an inherited class implements the interface provided by the base class hence the object of inherited can be treated as if it were an object of the base class.
Idea of code reuse is supported through inheritance.
- Amulya September 23, 2005