Question: In a composite pattern, which methods should have a default implementation in the component interface or abstract class? Group of answer choices All private methods
In a composite pattern, which methods should have a default implementation in the component interface or abstract class?
Group of answer choices
All private methods in the component.
Methods that are common to both the leaf and composite
No methods should have a default implementation.
Methods that are specific to the leaf and composite.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
