From the course: Learning Eclipse

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Java interface

Java interface

From the course: Learning Eclipse

Start my 1-month free trial

Java interface

- [Narrator] Interfaces are a powerful concept in object oriented programming, and with that it's no surprise that there's a was a to go ahead and set that up also. To create one I will go ahead and choose the icon in our menu bar and hit the drop down arrow and select interface. Now, my package is created, you can see that I have student.java highlighted, which assumes that I am using the mysecondproject.model, and therefore it is populated. Let's go ahead and give our interface a name. I will give it a name of person. This is an interface that a student can implement, because a student is a person. Now, an old school naming convention is to put the letter 'i' in front of interfaces, but the trend is to kind of gear away from that. I kind of like it, but I also like to stay current, so I'm not going to live in the past. No offense to anyone that chooses to use the 'i'. If there are any other interfaces that you wanted this current one to extend, that is to implement, you can select…

Contents