Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote