Introduction to Interfaces
Learn about interfaces, their declaration, and how to implement more than one interface in the same class.
We'll cover the following
Interfaces resemble abstract classes because they also include abstract methods that the programmer must define in the classes that implement the interface. In this way, interfaces contribute to code organization by committing the child classes to the methods that they should implement. Interfaces are particularly helpful when we work in a team of programmers and want to ensure that all the programmers write the methods that they should work on. They are also helpful for programmers working alone who want to commit themselves to writing certain methods in the child classes.
Get hands-on with 1400+ tech skills courses.