• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Interfaces > Understanding inheritance and interfaces

Understanding inheritance and interfaces

You can use the extends keyword to create subclasses of an interface. This can be very useful in larger projects for which you might want to extend (or subclass) an existing interface and add additional methods. These methods must be defined by any classes implementing that interface.

One consideration you need to make when extending interfaces is that you receive error messages in Flash if multiple interface files declare functions with the same names but have different parameters or return types.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint