You should add the static keyword in the place of ? in Line ________ in the following code:
```
public class Test {
private int age;
public ? int square(int n) {
return n * n;
}
public ? int getAge() {
}
}
```
a. in line 4
b. in line 8
c. in both line 4 and line 8
d. none
a. in line 4
The square method should be static because it does not reference any instance data or invoke any instance method.
You might also like to view...
following should be placed in the interface file for your class? Which should be placed in the implementation file for your class?
You are defining A class for use in a program you are writing. Which of the ``` >>>>ADD: “a” lowwercse ``` a) The class definition. b) The declaration of a stand-alone function (neither member nor friend of the class) that uses this class type parameter, and is used as a class operation. c) The declaration of a stand-alone overloaded operator (neither member nor friend of the class) that is to serve as a class operation. d) The definition of a stand-alone function (neither member nor friend of the class) that uses this class type parameter, and is to serve as a class operation. e) The definition of a friend function that is to serve as a class operation. f) The definition of a member function. g) The definition of a stand-alone overloaded operator (neither member nor friend of the class) that is to serve as a class operation. h) The definition of an overloaded operator that is to serve as a class operation and is a friend of the class. i) The main function of your program.
Access interprets anything enclosed in quotation marks as ________
A) a control B) text C) a command D) a Label
When the default body or heading font in a document is changed, all new text in that document will use the new font
Indicate whether the statement is true or false
A(n) ________ gives a visual representation of information that is used to effectively communicate ideas
A) clustered bar chart B) SmartArt graphic C) organization chart D) screen clipping