logo

Crowdly

Browser

Add to Chrome

A developer creates a Bird superclass with a fly() method. They then create an...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

A developer creates a Bird superclass with a fly() method. They then create an Ostrich subclass that extends Bird. Because ostriches cannot fly, the developer overrides the fly() method in the Ostrich class to immediately throw an UnsupportedOperationException. Which SOLID principle does this specific design directly violate?

0%
0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome