5)A static variable with ____________________ access may be assigned a value or altered by a member function anywhere after the static variable’s definition.
6)As each class is defined, it gets its own block of memory for its data members. ( True/ False)
7)Class member functions are global in the file where they’re defined but can be called only for objects created from the class. ( True/ False)
5)
A static variable with private access may be assigned a value or altered by a member function anywhere after the static variable’s definition.
Explanation:
private static variable most useful access to the same class and public members do not need a member function to alter or assign value.
6) True
Explanation:
it access easily name and scope of memory so its create own block of memory
7) False
Explanation:
No, it not created object class because it not access use by class member function.
Get Answers For Free
Most questions answered within 1 hours.