Question: Question 1 You could consider creating a class that has the responsibility for hiding the words in the scripture. What would be drawbacks of creating
Question
You could consider creating a
class that has the responsibility for hiding the words in
the scripture. What would be drawbacks of creating a
class instead of leaving that
responsibility to the Scripture and Word classes?
There are not really any drawbacks. It is simply not necessary.
Adding a separate Hider class would cause significant overhead and cause the program to run more
slowly.
A Hider class would introduce an additional set of methods that would have to be accounted for.
A Hider class would need to know the details of the other classes to make them hidden.
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
