Java OOP: Interfaces & Anonymous Classes
Java
| Intermediate
- 10 videos | 1h 9m 9s
- Includes Assessment
- Earns a Badge
In this course, you will focus on one of the most important concepts in all object-oriented programming for Java, the interface. Learners explore how anonymous inner classes provide lightweight instantiations of interfaces, and how interfaces are pure abstract entities. Begin with an introduction into using interfaces and how all their methods are abstract by default. Examine how the instanceof operator works the same way with interfaces as with classes. This leads on to combining the extends and implements keywords: implementing a derived class that can extend a base class and implement an interface. Then learners learn to set up two inheritance hierarchies and combine these into a set of objects that implement both sets of interfaces. Advanced features of interfaces are also examined. Learn how interfaces can support default method implementations. You will set up a class that implements some of the methods of an interface and declares itself abstract. Finally, you will create and define anonymous inner class objects and access outer class variables from your anonymous inner class.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseUse interfaces and recognized that all of their methods are abstract by defaultRecognize how the instanceof operator works the same way with interfaces as with classesImplement a derived class that can both extend a base class and implement an interfaceSet up two inheritance hierarchies and combine these into a set of objects that implement both set of interfaces
-
Use interfaces that support default method implementationsSet up a class that implements some of the methods of an interface and then declares itself abstractCreate and define anonymous inner class objectsAccess outer class variables from your anonymous inner classSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 19s
-
10m 52sDuring this video, you will learn how to use interfaces and recognize that all of their methods are abstract by default. FREE ACCESS
-
9m 47sUpon completion of this video, you will be able to recognize how the instanceof operator works with interfaces in the same way as with classes. FREE ACCESS
-
8m 21sIn this video, you will implement a derived class that can extend a base class and implement an interface. FREE ACCESS
-
7m 10sIn this video, find out how to set up two inheritance hierarchies and combine these into a set of objects that implement both sets of interfaces. FREE ACCESS
-
7m 32sDuring this video, you will learn how to use interfaces with default method implementations. FREE ACCESS
-
6m 46sIn this video, you will learn how to set up a class that implements some of the methods of an interface and then declares itself abstract. FREE ACCESS
-
7m 35sIn this video, find out how to create and define anonymous inner class objects. FREE ACCESS
-
6m 51sIn this video, learn how to access outer class variables from your anonymous inner class. FREE ACCESS
-
1m 56s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.