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...
Match the names of a variety of features with the type of PowerPoint option:
I. Fade, Wipe, Split II. Ion, Facet, Integral III. Wipe, Fly In, Fade IV. Notes Page, Normal V. Blank, Title Only A. animations B. transitions C. views D. layouts E. themes
This type of address is equivalent to the public IP addresses in IPv4
a. Global Unicast b. Multicast c. Anycast d. Link-local
The PROTECT Act retained the statutes of limitations for child abduction or child abuse
Indicate whether the statement is true or false.
What are shadows and outlines examples of?
A. text effects B. text styles C. font effects D. font styles