Java OOP: Interfaces & Anonymous Classes

Java SE 13
  • 10 Videos | 1h 9m 9s
  • Includes Assessment
  • Earns a Badge
Likes 43 Likes 43
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 course
    use interfaces and recognized that all of their methods are abstract by default
    recognize how the instanceof operator works the same way with interfaces as with classes
    implement a derived class that can both extend a base class and implement an interface
    set up two inheritance hierarchies and combine these into a set of objects that implement both set of interfaces
  • use interfaces that support default method implementations
    set up a class that implements some of the methods of an interface and then declares itself abstract
    create and define anonymous inner class objects
    access outer class variables from your anonymous inner class
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 19s
    UP NEXT
  • Playable
    2. 
    Introduction to Interfaces
    10m 52s
  • Locked
    3. 
    Using instance of Interfaces
    9m 47s
  • Locked
    4. 
    Combining the extends and implements Keywords
    8m 21s
  • Locked
    5. 
    Multiple Inheritance of Interfaces
    7m 10s
  • Locked
    6. 
    Default Methods in Interfaces
    7m 32s
  • Locked
    7. 
    Abstract Classes that Implement Interfaces
    6m 46s
  • Locked
    8. 
    Anonymous Inner Classes
    7m 35s
  • Locked
    9. 
    Outer Class Access from Anonymous Inner Classes
    6m 51s
  • Locked
    10. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 84 Likes 84  
Likes 34 Likes 34