aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ Programming
  • Unless specified otherwise, C ++ assumes all members of a...
Multiple choice

Unless specified otherwise, C ++ assumes all members of a class as public.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C++, class members are private by default. Struct members are public by default.

Keep practicing — related questions

  • An object pointer can point to private members of a class.
  • The members (variables and methods) of a class are by default specified as _________
  • A member function
  • All interface methods must be declared as public when implemented in a class.
  • All interface methods must be declared as public when implemented in a class.
  • All interface methods must be declared as public when implemented in a class.
  • Can the private data members of a class be modified or accessed outside the class, without using member fun...
  • The default access level assigned to members of a class is ___________
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy