A

Admin • 833K Points
Coach

Q. When “struct” is used instead of the “class” keyword, will anything change in the program?

  • (A) Access is public by default
  • (B) Access is private by default
  • (C) Access is protected by default
  • (D) Access is denied
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

For structures, by default, all members (data and functions) are public.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.