In object-oriented programming terminology, an interface is a contract. It defines a set of methods with particular signatures. Any class that implements that interface must implement those methods. You can then treat that object as an instance of the interface.
- [Instructor] In object oriented programming terminology,…and interface is a contract.…It defines a set of methods with particular signatures.…Any class that implements that interface,…must implement those methods.…It's a guarantee that those methods…and other members of the class will be present.…You can then treat that object…as an instance of the interface,…passing it to methods that expect objects…that satisfy the contract.…In this application,…I'll start by creating a new interface.…
We already know that a shirt is one kind of clothing item.…Well now, we'll extend the hierarchy by saying that clothing…item is one kind of product…and I'll represent product with an interface.…I'll right click on the model package…and choose new Java class,…I'll set the name as product,…but now instead of setting the kind as class,…I'll set it as interface.…Next, I'll list the methods that…all classes that implement this method must have.…
I'll go to the clothing item class…and I'll go get the type…and name of each of the getter methods.…
- Debugging Java code
- Handling exceptions
- Creating custom classes
- Working with inheritance
- Managing data collections
- Using Java packages and libraries
- Preparing a Java application for deployment
Skill Level Intermediate
1. Exception Handling and Debugging
2. Create Custom Classes
3. Work with Inheritance
4. Manage Data Collections
5. Use Java Packages and Libraries
Work with dates and times7m 12s
6. Prepare a Java Application for Deployment
Next steps1m 12s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.