How would you decide to make a class method public or private or a friend functi
ID: 3816695 • Letter: H
Question
How would you decide to make a class method public or private or a friend function ?
Never make a class method public
Always make a class method public
Make a method public if it is part of an action of a use case and needs therefore to be in the public interface of the object to be invokable.
Make the method public in case theres any possibility that someone may want to use it
A -Never make a class method public
B -Always make a class method public
C -Make a method public if it is part of an action of a use case and needs therefore to be in the public interface of the object to be invokable.
D-Make the method public in case theres any possibility that someone may want to use it
Explanation / Answer
Q) How would you decide to make a class method public or private or a friend function ?
Answer:
B. Always make a class method public
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.