O'Reilly logo

AdvancED ActionScript 3.0: Design Patterns by Ben Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Answers to Quiz 2

Understanding object-oriented programming is easy.     Image

Explanation: Object-oriented programming is a very advanced concept and is often misunderstood by experienced programmers. Despite what some may say, understanding OOP isn’t easy. Remember this when you’re frustrated.

1.    Why is inheritance the cornerstone of OOP?

Inheritance enables polymorphism, which is the main reason object-oriented languages exist.

2.    Consider the following figure:

Image

If class B inherits class A, which already imported the definition of class C, why ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required