171k views
0 votes
Policies are inherited but still can be disabled or overriden by objects lower in the hierarchy.

A. Right
B. Wrong

User Rckehoe
by
8.3k points

1 Answer

4 votes

Final answer:

Policies can be inherited but also disabled or overridden by objects in a hierarchy.

Step-by-step explanation:

In the context of object-oriented programming, policies can be inherited from higher-level objects in a class hierarchy. However, these policies can also be disabled or overridden by objects lower in the hierarchy. This is achieved through the concept of method overriding, where a subclass provides a specific implementation of a method defined in its superclass, thereby modifying the behavior of the inherited policy.

User Dairo
by
8.4k points

Related questions

asked Dec 27, 2022 28.9k views
Luca Clissa asked Dec 27, 2022
by Luca Clissa
8.4k points
2 answers
2 votes
28.9k views