15.7k views
0 votes
We use __________ functions to provide values to our private member variables.

Variables under the __________ qualifier can be accessed by name in a derived class, but not anywhere else.
To declare a function or a class as a template, we need a(n) __________.
The __________ is used inside of a template function or in its parameter list as a stand-in for the type we will be replacing.
If a member function is __________, the compiler will wait until runtime to determine the implementation, based on the object that calls it.

1 Answer

3 votes
We use setter functions to provide values to our private member variables.
Variables under the protected qualifier can be accessed by name in a derived class, but not anywhere else.
To declare a function or a class as a template, we need a template keyword.
The template parameter is used inside of a template function or in its parameter list as a stand-in for the type we will be replacing.
If a member function is virtual, the compiler will wait until runtime to determine the implementation, based on the object that calls it.
User Uxp
by
9.2k points