Java OOP: Interfaces & Anonymous Classes
Java SE 13
| 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
-
1.Course Overview2m 19sUP NEXT
-
2.Introduction to Interfaces10m 52s
-
3.Using instance of Interfaces9m 47s
-
4.Combining the extends and implements Keywords8m 21s
-
5.Multiple Inheritance of Interfaces7m 10s
-
6.Default Methods in Interfaces7m 32s
-
7.Abstract Classes that Implement Interfaces6m 46s
-
8.Anonymous Inner Classes7m 35s
-
9.Outer Class Access from Anonymous Inner Classes6m 51s
-
10.Course Summary1m 56s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.