In addition to encapsulation, there are two other concepts that you need to master to be a great object-oriented programmer—inheritance and polymorphism. Inheritance means that there's a relationship between classes in your application that lets you inherit or extend functionality from one class to another.
- [Instructor] I previously described encapsulation,…but there are two other concepts that you need to master…to be a great object-oriented programmer,…inheritance and polymorphism.…Inheritance means that there's a relationship…between classes in your application…that lets you inherit or extend functionality…from one class to another.…Not all object-oriented languages are the same.…For example, C++ supports multiple inheritance,…that is one class can inherit functionality…from more than one other class.…
But in Java, there's only single inheritance,…each class can extend or inherit functionality…from only one other class.…This actually makes it a lot easier to manage your code.…If you run into a bug,…that bug can either be in the class that you're working on…or in its direct superclass or in its superclass and so on,…but the issue has to be somewhere in that linear path.…Java does allow you to implement multiple interfaces…in a single class, but we'll get to interfaces later.…
There are a number of different ways…
- 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.