You should add the static keyword in the place of ? in which of the following function:
```
#include
using namespace std;
class Test
{
public:
? int square(int n)
{
return n * n;
}
? int getAge()
{
return age;
}
private:
int age;
};
```
a. none
b. in the square function because the function does not use any instance data fields.
c. in the getAge function
d. in both lthe square function and the getAge function
b. in the square function because the function does not use any instance data fields.
You might also like to view...
What is wrong with the following statement?
cout << “Hello to everyone\n; a. cout should be count b. missing a semicolon c. missing a “ d. missing a (
When using the logical operator “Or”, what part of the expression must be true?
(A) only the left part (B) only the right part (C) either the left or right part, but not both (D) either the left or right part
From the list below, which is a valid variable name?
A. jump_over B. _jumpover C. jumpOver_ D. All are valid.
What is the iCloud Key Chain? Describe a major benefit of using it.
What will be an ideal response?