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

Can someone please help me figure out these fill in the blanks? In C++ _____ var

ID: 3770271 • Letter: C

Question

Can someone please help me figure out these fill in the blanks?

In C++ _____ variables are declared using the qualifier static.

The purpose of a ____ is to deallocate memory to class instances.

Class or Variable ______ serve as a mode lfor a family of classes or variables in functions' definitions.

The variable scope ______ means that the names of the data attributes and function memebers are local to the scope of their class.

_______ means that the function's action is is determined by the object using it.

The purpose of the constructor is to allocate _____ to class instances.

Unlike a method, which is always a member of a _____ a function is a non-class procedure.

The scope _____ allows subclasses to access private variables of their parent classes.

Explanation / Answer

1)Well, I think the keyword is appropriate. It means the variable you declare as static will remain stored at the same location throughout the whole execution of your program.

I thought static means doesn't change
This corresponds to the const keyword. Const implies it doesn't change, static implies it doesn't "move", as to it stays stored at the same location.

2)Memory allocated with the new[] must be deallocated with the delete[] operator, rather than delete. Using the inappropriate form results in undefined behavior. C++ compilers are not required to generate a diagnostic message for using the wrong form.destructors also

3)parameter

4)private

5)constructor

6) Constructors can be used to initialize member objects as well as allocate memory

7)

8)protected